diff options
Diffstat (limited to 'community/sniproxy/sniproxy.initd')
-rw-r--r-- | community/sniproxy/sniproxy.initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/community/sniproxy/sniproxy.initd b/community/sniproxy/sniproxy.initd new file mode 100644 index 0000000000..0fcb5acf1a --- /dev/null +++ b/community/sniproxy/sniproxy.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +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 +} + |