diff options
author | Paul Onyschuk <blink@bojary.koba.pl> | 2011-07-27 17:07:21 +0200 |
---|---|---|
committer | Paul Onyschuk <blink@bojary.koba.pl> | 2011-07-27 17:07:21 +0200 |
commit | 4efe10786d0cf6732f704e8dabed2cc2f5c49b48 (patch) | |
tree | 44d9a9bdf632437ca9cf3f6a311362846151915a /testing/regina-rexx/regina-rexx.initd | |
parent | 5dc1a4a8e99930918884737cfb51d5a6da61844c (diff) | |
download | aports-4efe10786d0cf6732f704e8dabed2cc2f5c49b48.tar.bz2 aports-4efe10786d0cf6732f704e8dabed2cc2f5c49b48.tar.xz |
testing/regina-rexx: new aport
Diffstat (limited to 'testing/regina-rexx/regina-rexx.initd')
-rw-r--r-- | testing/regina-rexx/regina-rexx.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/regina-rexx/regina-rexx.initd b/testing/regina-rexx/regina-rexx.initd new file mode 100644 index 0000000000..a3e1847805 --- /dev/null +++ b/testing/regina-rexx/regina-rexx.initd @@ -0,0 +1,28 @@ +#!/sbin/runscript + +# Sample init.d file for alpine linux. + +name=rxstack +daemon=/usr/bin/$name + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${name}" + start-stop-daemon --start --quiet \ + --pidfile /var/run/${name}.pid \ + --exec ${daemon} -- -d + eend $? +} + +stop() { + ebegin "Stopping ${name}" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/$name.pid \ + --exec ${daemon} + eend $? +} + |