aboutsummaryrefslogtreecommitdiffstats
path: root/community/sniproxy/sniproxy.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-10-06 07:19:06 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-10-06 07:19:06 +0000
commitfc787e8f39e919ca99c1912a63642c4ee9947408 (patch)
tree5035e7c551afd4e222add87411793a0a58a153f6 /community/sniproxy/sniproxy.initd
parente3c14b289b1ffb4d886227bbd00295afb23eb51b (diff)
downloadaports-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.initd19
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
+}
+