diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-30 15:55:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-06-30 15:55:28 +0000 |
commit | 2da022a8f0642c8990ba999256fc8b9ccada29f2 (patch) | |
tree | 2d7c1424e74ef5b61629f59854acffe3cc398482 /main/opentracker/opentracker.initd | |
parent | e00b3c4c5b38263565b62a6674516f8492b2a532 (diff) | |
download | aports-2da022a8f0642c8990ba999256fc8b9ccada29f2.tar.bz2 aports-2da022a8f0642c8990ba999256fc8b9ccada29f2.tar.xz |
main/opentracker: moved from testing
fixes #190
Diffstat (limited to 'main/opentracker/opentracker.initd')
-rw-r--r-- | main/opentracker/opentracker.initd | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/opentracker/opentracker.initd b/main/opentracker/opentracker.initd new file mode 100644 index 0000000000..33d2817787 --- /dev/null +++ b/main/opentracker/opentracker.initd @@ -0,0 +1,38 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +name=opentracker +daemon=/usr/bin/$name +conf=${opentracker_conf:-/etc/opentracker/opentracker.conf} +pidfile=/var/run/opentracker.pid + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --make-pidfile \ + --pidfile ${pidfile} \ + --background \ + --stdout /dev/null \ + --stderr /dev/null \ + --exec ${daemon} \ + -- \ + -d /var/empty \ + -f $conf \ + -u ${opentracker_user:-opentracker} \ + ${opentracker_opts} + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet --pidfile ${pidfile} \ + --exec ${daemon} + eend $? +} + |