summaryrefslogtreecommitdiff
path: root/legacy/mistserver/mistserver.initd
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2023-05-04 09:57:57 -0500
committerZach van Rijn <me@zv.io>2023-05-04 09:57:57 -0500
commitf9ba261c26e2bb56d28654a4fdf6180c6eb218df (patch)
treedd0ac975149ab2be0ac07ad49af3224662aeadf8 /legacy/mistserver/mistserver.initd
parente61495d789e6dfbbef272095a63a026cf98e15e0 (diff)
downloadpackages-f9ba261c26e2bb56d28654a4fdf6180c6eb218df.tar.gz
packages-f9ba261c26e2bb56d28654a4fdf6180c6eb218df.tar.bz2
packages-f9ba261c26e2bb56d28654a4fdf6180c6eb218df.tar.xz
packages-f9ba261c26e2bb56d28654a4fdf6180c6eb218df.zip
{user => legacy}/mistserver: 32-bit headache. see #1008.
Diffstat (limited to 'legacy/mistserver/mistserver.initd')
-rwxr-xr-xlegacy/mistserver/mistserver.initd29
1 files changed, 29 insertions, 0 deletions
diff --git a/legacy/mistserver/mistserver.initd b/legacy/mistserver/mistserver.initd
new file mode 100755
index 000000000..9f2765c40
--- /dev/null
+++ b/legacy/mistserver/mistserver.initd
@@ -0,0 +1,29 @@
+#!/sbin/openrc-run
+
+description="MistServer multimedia streaming service"
+
+: ${MIST_CONFIG:=/etc/mistserver.conf}
+: ${MIST_LOG:=/var/log/mistserver.log}
+
+depend() {
+ need net
+ use logger dns
+ after sshd firewall
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec MistController \
+ -- -L ${MIST_LOG} -c ${MIST_CONFIG}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop \
+ --pidfile ${PIDFILE} \
+ --exec MistController
+ eend $?
+}