Hi all

I am using an iptables script called APF and I want to auto-start it
(/etc/apf/apf -s) when the machine/service starts and when the service
restarts (/etc/apf/apf -r)

Please could someone point me in the right direction for theses
initscripts..

So far I have this and I know it's wrong..

-----------------------------------------

#! /sbin/runscript

start() {

ebegin "Starting APF"
start-stop-daemon --start --quiet \
--exec /etc/apf/apf -s
eend $?

}

restart() {
        ebegin "Restarting APF"
start-stop-daemon --start --quiet \
--exec /etc/apf/apf -r
eend $?

}

-----------------------------------------

Thanks!
Joel



-- 
Joel Merrick

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to