This is a read-only archive of the Mumble forums.

This website archives and makes accessible historical state. It receives no updates or corrections. It is provided only to keep the information accessible as-is, under their old address.

For up-to-date information please refer to the Mumble website and its linked documentation and other resources. For support please refer to one of our other community/support channels.

Jump to content

I search an AutoRestart script when my server goes Down / De


xlkiller
 Share

Recommended Posts

I found this: http://bash.cyberciti.biz/web-server/restart-apache2-httpd-shell-script/ but doesnt work with:

 

#!/bin/bash
# Mumble Process Monitor
# Restart Mumble Server When It Goes Down
# ------------------------------------------------------------------------- 
# uncomment if you are using Debian / Ubuntu Linux
RESTART="/etc/init.d/mumble-server start"

#path to pgrep command
PGREP="/usr/bin/pgrep"

# Httpd daemon name,
# Under RHEL/CentOS/Fedora it is httpd
# Under Debian 4.x it is apache2
MURMURD="murmurd"

# find httpd pid
$PGREP ${MURMURD}

if [ $? -ne 0 ] # if mumble not running
then
# restart mumble
$RESTART
fi

Link to comment
Share on other sites

 Share

×
×
  • Create New...