diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-10-06 07:19:06 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2015-10-06 07:19:06 +0000 |
commit | fc787e8f39e919ca99c1912a63642c4ee9947408 (patch) | |
tree | 5035e7c551afd4e222add87411793a0a58a153f6 /community/sniproxy/sniproxy.initd | |
parent | e3c14b289b1ffb4d886227bbd00295afb23eb51b (diff) | |
download | aports-fc787e8f39e919ca99c1912a63642c4ee9947408.tar.bz2 aports-fc787e8f39e919ca99c1912a63642c4ee9947408.tar.xz |
community/sniproxy: moved from main
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 +} + |