aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/regina-rexx/regina-rexx.initd
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/regina-rexx/regina-rexx.initd')
-rw-r--r--unmaintained/regina-rexx/regina-rexx.initd28
1 files changed, 28 insertions, 0 deletions
diff --git a/unmaintained/regina-rexx/regina-rexx.initd b/unmaintained/regina-rexx/regina-rexx.initd
new file mode 100644
index 0000000000..a3e1847805
--- /dev/null
+++ b/unmaintained/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 $?
+}
+