Joel Merrick wrote:
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)
From "man start-stop-daemon":
start-stop-daemon - start and stop system daemon programs
I don't know apf but I guess its just a simple script, not a daemon.
If this is the case, then you can keep it simpler:
#! /sbin/runscript
start() {
ebegin "Starting APF"
/etc/apf/apf -s >/dev/null
eend $?
}
restart() {
ebegin "Restarting APF"
/etc/apf/apf -r >/dev/null
eend $?
}
--
echo mailto: NOSPAM !#$.'<*>'|sed 's. ..'|tr "<*> !#:2" [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list