pre|post start hook scripts

Post Reply
branko
Junior Member
Posts: 3
Joined: 29 Mar 2011, 08:57

pre|post start hook scripts

Post by branko »

It would be nice to have pre start and post start hook scripts.
It shouldn't be hard to implement two extra variables in csf.conf to hold path to executable scripts which would run prior to starting and post csf startup.
They could be used to gather some statistical data, implement custom firewall rules outside csf's scope and so on...
antonaleksandrov
Junior Member
Posts: 6
Joined: 05 Mar 2010, 10:33

Re: pre|post start hook scripts

Post by antonaleksandrov »

I vote for custom firewall rules!
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: pre|post start hook scripts

Post by chirpy »

That feature has been available in csf for a long time. Look for csfpre.sh and csfpost.sh in the readme.txt documentation.
Post Reply