argument('configuration'); $source = base_path().self::SOURCE_FAIL2BAN_JAIL_DIRECTORY.'/'.$configuration.'.conf'; // configuration not found if (!file_exists($source)) { $this->error('fail2ban...configuration not found'); exit(); } unlink(self::DESTINATION_FAIL2BAN_JAIL_DIRECTORY.'/'.$configuration.'.conf'); exec('service fail2ban restart'); $this->info('fail2ban...'.$configuration.' disabled'); } }