blob: fcaa28c6978cefd7963c165fe24f50e19d8caabd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/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
}
|