|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
In the past I've used the inittab feature on linux to set all my gameservers to autorestart if they crash or go down for whatever reason. Obviously FreeBSD does not have inittab, so I was wondering what I could use that's built into FreeBSD, or what program I could use to monitor the gameserver and autorestart it if it goes down? I tried monitord with no success, no matter what I tried it wouldn't work.
Thank you for your help in advance. Last edited by Joe[GTV] : May 3rd, 2004 at 03:39 AM. |
|
#2
|
||||
|
||||
|
man 8 init
Partial quote from the man page: Code:
The init utility can also be used to keep arbitrary daemons running,
automatically restarting them if they die. In this case, the first field
in the ttys(5) file must not reference the path to a configured device
node and will be passed to the daemon as the final argument on its com-
mand line. This is similar to the facility offered in the AT&T System V
UNIX /etc/inittab.
Another alternative would be to use djb's daemontools (http://cr.yp.to/daemontools.html)
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
So where would I be putting the startup lines for the game servers?
|
|
#4
|
|||
|
|||
|
ttys(5) is in /etc
![]() M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#5
|
|||
|
|||
|
I understand that, but what syntax would I use?
Say I want to run an hltv, which is ran by simply su - to the user and ./hltv What syntax would I use? |
|
#6
|
|||
|
|||
|
bump, anyone?
|
|
#7
|
|||
|
|||
|
I tried..
-- "/root/scripts/hltv1-ttys.sh" unknown on -- "/root/scripts/hltv2-ttys.sh" unknown on -- "/root/scripts/hltv3-ttys.sh" unknown on -- "/root/scripts/hltv4-ttys.sh" unknown on but only hltv4 will startup and autorestart when it goes down :/ |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Autorestarting For Game Servers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|