cyverse / atmosphere-ansible

Ansible instance deployment code for Atmosphere
Other
4 stars 21 forks source link

Denyhosts is being uninstalled, but the service is not being stopped #28

Closed nfaction closed 8 years ago

nfaction commented 8 years ago

Will need to stop service and possible HUP the process.

denypid=$(pgrep -f "python /usr/sbin/denyhosts" | xargs)
echo "Found running pids: $denypid"
echo "Killing those processes now..."
for i in $denypid;do
    kill -HUP $i
done
nfaction commented 8 years ago

Denyhosts was being uninstalled, but not stopped as a service. Now it is being stopped and uninstalled for ALL OSes except CentOS 5. There was also a minor bug that prevented Fail2Ban from respecting ignore_ips