On Wed, 1 Oct 2003, Ian Blenke wrote:
> Robert E. Schaefer wrote:
> > What I looking for is a way to autostart 6 different
> > instances of this at runlevel 3 and way of checking to make sure that
> > all the servers are running and restart any that have crashed.
>
> When running game servers, I've found it best to use a script wrapper
> with an infinite loop (also, run it as a user like "halflife", NOT AS
> ROOT, it's just a smart thing to do):
>
> #!/bin/bash
> # Create this as "restartscript.sh" in your path
> while /bin/true; do
> echo $$ > /var/run/restartscript.pid
> su - halflife -c ./hlds_run
Don't forget to put a "sleep" in here; else; if something's wrong with
hlds_run, this script will go into a fast loop.
> done
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar CANCER: The position of Jupiter says that you should spend the rest of the week face down in the mud. Try not to shove a roll of duct tape up your nose when taking your driver's test. -- Weird Al----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:44:32 EDT