aports/testing/sniproxy/sniproxy.initd

20 lines
331 B
Plaintext

#!/sbin/runscript
pidfile="/var/run/${SVCNAME}/${SVCNAME}.pid"
command="/usr/sbin/${SVCNAME}"
: ${conf_file:="/etc/sniproxy/sniproxy.conf"}
depend() {
need net
after firewall
}
start() {
ebegin "Starting $SVCNAME"
start-stop-daemon --start \
--quiet --pidfile $pidfile --exec $command \
-- -c "$conf_file" "$@"
eend
}