Difference between revisions of "Murmur Init Script"

From Mumble Wiki
Jump to: navigation, search
(download added)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Especialy for Debian/Ubuntu
+
{{Notice|message=Mumble server packages usually contain working init scripts. Manually setting this up is only necessary if these are not available, or you decide to not use them.}}
  
->For this script, all murmur files (murmur.x86, murmur.ini ...) must be located in the directory ''/etc/murmur''
+
Download the Script from https://raw.github.com/mumble-voip/mumble/master/scripts/murmur.init
  
''/etc/init.d/murmur''
+
Rename it to /etc/init.d/murmur
### BEGIN INIT INFO
 
# Provides: Murmur Server Installation
 
# Required-Start: $local_fs $network
 
# Required-Stop: $local_fs $remote_fs
 
# Default-Start: 2 3 4 5
 
# Default-Stop: 0 1 6
 
# Short-Description: Voice Chat Service
 
# Description: Murmur is an open source Voice Chat Server for Gamers
 
### END INIT INFO
 
#! /bin/sh
 
# /etc/init.d/murmur
 
MURMURBIN=/etc/murmur/murmur.x86
 
MURMURINI=/etc/murmur/murmur.ini
 
case "$1" in
 
  start)
 
    if [ -x $MURMURBIN ] ; then
 
      echo "Starting script murmur"
 
      $MURMURBIN -ini $MURMURINI
 
    else
 
      echo "$MURMURBIN not installed"
 
    fi
 
    ;;
 
  stop)
 
    echo "Stopping script murmur"
 
    pkill murmur.x86 2>/dev/null
 
    ;;
 
  restart)
 
    echo "Restarting script murmur"
 
    pkill murmur.x86 2>/dev/null
 
    sleep 1
 
    if [ -x $MURMURBIN ] ; then
 
        echo "Loading murmur..."
 
        $MURMURBIN -ini $MURMURINI
 
    else
 
        echo "$MURMURBIN not installed"
 
    fi
 
    ;;
 
  *)
 
    echo "Usage: $0 {start|stop|restart}"
 
    exit 1
 
    ;;
 
esac
 
exit 0
 
  
 
Make the file executable :
 
Make the file executable :
  
  chmod -x /etc/init.d/murmur
+
  chmod +x /etc/init.d/murmur
  
 
Update init levels
 
Update init levels
Line 56: Line 13:
 
  update-rc.d murmur defaults 90
 
  update-rc.d murmur defaults 90
  
Download :
 
  
http://www.mumb1e.de/de/downloads/main/view.download/17/78
+
[[Category:Documentation English]]
 +
[[Category:Mumble Server]]

Latest revision as of 17:24, 15 April 2017

Icons oxygen 48x48 actions view-pim-notes.png
Note:
Mumble server packages usually contain working init scripts. Manually setting this up is only necessary if these are not available, or you decide to not use them.

Download the Script from https://raw.github.com/mumble-voip/mumble/master/scripts/murmur.init

Rename it to /etc/init.d/murmur

Make the file executable :

chmod +x /etc/init.d/murmur

Update init levels

update-rc.d murmur defaults 90