zone-world on cron?
i could swear i read somewhere about world and zone being cron'd.. but search not finding it..
is there a way to set world and zones on cron so if they happen to die cron will restart them? |
write a script that checks for processes being dead or gone, then relaunches it. Cron that script.
Just an example for non parameterized script relaunching 7997, should be something like Code:
if ! ps ax | grep "zone . myip 7997 myip" |grep -v "grep" 1> /dev/null 2> /dev/null ; then then add to your crontab : Code:
*/3 * * * * relaunchscript.sh 2>&1 >> ~/restart.log Pb is deciding what to restart, if world is down, or one or more zones. Restart, one, all, ... ? Up to you ;). This is just an idea, i'd be interested in some public script if you set up one. |
Either that, or start them from init by setting up lines in your inittab:
(This is just a types in example, btw, your milage may vary) Code:
# World Code:
#!/bin/bash Code:
#!/bin/bash Code:
/sbin/telinit b Code:
/sbin/telinit c |
All times are GMT -4. The time now is 07:56 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.