summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-p2p/museek+/files/init.d-mulog')
-rw-r--r--net-p2p/museek+/files/init.d-mulog21
1 files changed, 21 insertions, 0 deletions
diff --git a/net-p2p/museek+/files/init.d-mulog b/net-p2p/museek+/files/init.d-mulog
new file mode 100644
index 000000000..fe7aebad7
--- /dev/null
+++ b/net-p2p/museek+/files/init.d-mulog
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 2004 SeeSchloss
+# Distributed under the terms of the GNU General Public License v2
+
+# NB: Config is in /etc/conf.d/mulog
+
+depend() {
+ need museekd
+}
+
+start() {
+ ebegin "Starting mulog as user $MULOG_USER"
+ start-stop-daemon --start --quiet --exec /usr/bin/mulog.py --chuid $MULOG_USER --background --pidfile /var/run/mulog.pid --make-pidfile -- $MULOG_HOST:$MULOG_PORT $MULOG_PASS $MULOG_PATH
+ eend $? "Failed to start mulog"
+}
+
+stop() {
+ ebegin "Stopping mulog"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mulog.pid
+ eend $? "Failed to stop mulog"
+}