summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/murmur/files/murmur.rc')
-rw-r--r--media-sound/murmur/files/murmur.rc27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-sound/murmur/files/murmur.rc b/media-sound/murmur/files/murmur.rc
new file mode 100644
index 000000000000..9b0748af3119
--- /dev/null
+++ b/media-sound/murmur/files/murmur.rc
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ need localmount
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting Murmur voice chat server"
+ start-stop-daemon --start --make-pidfile --pidfile /var/run/murmur.pid \
+ --chuid $MURMUR_USER --env HOME=$MURMUR_HOMEDIR \
+ --exec /usr/bin/murmur -- -ini $MURMUR_CONFDIR/murmur.ini &> $MURMUR_LOGFILE &
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Murmur voice chat server"
+ start-stop-daemon --stop --exec /usr/bin/murmur \
+ --pidfile /var/run/murmur.pid
+ eend $?
+ #rm /var/run/murmur.pid
+}
+
+#restart() {
+# #(Commands necessary to restart the service)
+#}