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

Ice/DBus, Web-Interfaces, Management tools

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

Postby xlkiller » Sun Feb 21, 2010 6:52 pm

I found this: http://bash.cyberciti.biz/web-server/re ... ll-script/ but doesnt work with:

Code: Select all
#!/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
xlkiller
 
Posts: 7
Joined: Wed Feb 17, 2010 5:20 pm

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

Postby lux73 » Sun Feb 28, 2010 11:01 am

Hi!

use this Script: viewtopic.php?f=7&t=15

then add a softlink to /etc/rc2.d/

Code: Select all
cd /etc/rc2.d/
ln -s /etc/init.d/murmurd S35murmurd


after reboot your murmur Server will restart!

Have fun!

gretings from Germany
lux73
 
Posts: 6
Joined: Tue Feb 09, 2010 4:59 pm
Location: Germany


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron