How to fully uninstall APF firewall?

Kent Brockman

Well-Known Member
Jan 20, 2008
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
Hi there people, I'm using actually CSF and is working very fine.
I thought I completely uninstalled APF, but something seems to be still alive.
Based on what I've found on the web, this is the script I'm using to uninstall APF:

/etc/init.d/apf stop
rm /etc/cron.daily/apf* -drf
rm /etc/logrotate.d/apf* -drf
rm /etc/apf* -drf
rm /usr/local/sbin/apf* -drf
rm /etc/rc.d/init.d/apf* -drf
rm /var/log/apf* -drf
/sbin/chkconfig --level 345 apf off
This code stops and uninstall APF, but I recently found this at the cron log:

Jun 30 17:50:01 servidor crond[7496]: (root) CMD (/etc/init.d/apf stop >> /dev/null 2>&1)
I don't realize what's missed and how/where to delete the entry that is trying to run that line every 5 minutes.
Anybody having some clues?