Author Topic: Searching crashed server restarting script  (Read 1927 times)

0 Members and 1 Guest are viewing this topic.

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Searching crashed server restarting script
« on: June 06, 2007, 03:04:49 pm »
I'm searching a script for a linux server that checks every now and then wether the server crashed and then attempts to restart it.
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline mar77a

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1295
  • mad
    • random stuffs
Re: Searching crashed server restarting script
« Reply #1 on: June 06, 2007, 03:10:11 pm »
FliesLikeABrick has one he uses on his servers  ;)

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Searching crashed server restarting script
« Reply #2 on: June 06, 2007, 03:32:15 pm »
yeye, but he told me it was private
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Searching crashed server restarting script
« Reply #3 on: June 06, 2007, 04:09:58 pm »
yeye, but he told me it was private

no, I told you that it is custom-made for how my control panel works and that it won't do you any good.  You're welcome to have it, but you'll have to rewrite some of it to make it work

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Searching crashed server restarting script
« Reply #4 on: June 06, 2007, 11:56:28 pm »
http://games.ii.net/dev/soldatmonitor.cgi

SoldatMonitor. I use this one on my servers aswell as checking gamestat.txt modification date. Double protection ftw

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Searching crashed server restarting script
« Reply #5 on: June 07, 2007, 02:25:00 am »
Code: [Select]
[Thu Jun  7 03:21:32 2007] [Thu Jun  7 03:23:40 2007] Soldat process exiting.

Can't create listening socket: Permission denied
socket: IO::Socket::INET: Permission denied at soldatmonitor.pl line 492.
CONFIG: unable to open configuration file - soldat.iniCONFIG: unable lock configuration file - soldat.iniCONFIG: unable to close configuration file - soldat.iniCONFIG: unable to open configuration file - soldat.iniCONFIG: unable lock configuration file - soldat.iniCONFIG: unable to close configuration file - soldat.ini[Thu Jun  7 03:23:42 2007] Process ID: 22417
CONFIG: unable to open configuration file - soldat.iniCONFIG: unable lock configuration file - soldat.iniCONFIG: unable to close configuration file - soldat.ini[Thu Jun  7 03:23:42 2007] Soldat process exiting.

the "soldatmonitor-1.2" folder is located in the soldatserver's directory, i execute soldatmonitor while the server is running and this is what i get.
(I'm using the non perl version)
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Searching crashed server restarting script
« Reply #6 on: June 07, 2007, 02:46:23 am »
You need to make sure the user account running the monitor has read permission to soldat's files

Offline Shoozza

  • Retired Soldat Developer
  • Veteran
  • ******
  • Posts: 1632
  • Soldat's Babysitter
    • Website
Re: Searching crashed server restarting script
« Reply #7 on: June 07, 2007, 11:05:28 am »
Avarax ive written such a perlscript http://forums.soldat.pl/index.php?topic=12410.0
and its used for all Quloa servers so maybe it will fit ;)
Rules
Tools: ARSSE - SARS - SRB - chatMod