Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
Haha, funny code. Never tested it but I think this works. BTW. why don't you use your own startscript? Run in your script dirrectly the srcds_linux and set LD_LIBRARY_PATH and this in a loop. Valve has the problem, that their script has to run with different shell interpreters, on different distributions/os and different architectures. They've also a bug in the notification if you're running your server with root privileges. I think they're afraid to change anything in this bloated shell script. Maybe someone writes nice pythonic code for windows/linux in one file. In this case the windows admins has only to install a python interpreter and will have the features as the linux version. But I think I've seen already some projects on github which are doing this. 2014-03-09 1:10 GMT+01:00 Valentin G. : > This bug is still in srcds_run: > https://github.com/ValveSoftware/halflife/issues/210 > hlds_run should not be affected anymore > > I use a small script that hotfixes srcds_run and then runs it, so > validate doesn't remove the patch: > > eval "$(sed 's/test -z "$AUTO_UPDATE";/test -z "$RESTART";/' srcds_run)" > > On Sun, Mar 9, 2014 at 12:49 AM, ics wrote: > > My servers tend to restart themselves. Only crash so far that i've seen > that > > doesn't restart itself is L4D2 & CSGO when they crash on some memory > error > > for being on too long in a row. > > > > -ics > > > > Ook kirjoitti: > > > >> I know this topic gets brought up from time to time, but I haven't yet > >> found a good solution to the problem of auto-restarting an hlds server > when > >> it crashes. I am once again trying to move my OP4 server from Winbloze > to > >> linux. The last time I did this I gave up because I couldn't get it to > run > >> reliably, and the restart script that comes with the linux version did > not > >> work. It would crash and just sit there, some sort of debugger problem > that > >> I was not able to reliably resolve. It also had a nasty tendency to > segfault > >> on startup about 50% of the time. > >> > >> So - who is running hlds servers on linux, and how do you handle > >> restarting after a crash? > >> > >> ___ > >> To unsubscribe, edit your list preferences, or view the list archives, > >> please visit: > >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > > > > > > ___ > > To unsubscribe, edit your list preferences, or view the list archives, > > please visit: > > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
Hi, my solution with crashes and restarts is the same with any type of gameserver. I have written a webinterface that includes cronjobs. One of those cronjobs runs a statuscheck for all servers that should be runnning. In case a server cannot be reached, the server is restarted. Interface is Open Source (GNU GPL v3) https://easy-wi.com and the used php query class is GameQ https://github.com/Austinb/GameQ cheers Am 09.03.2014 01:19, schrieb Valentin G.: I'm only running CS 1.6 and my hlds_run is patched. The bug and hotfix script are the same though, so you can just check the run() function if it contains the bug, or change the script above to reference hlds_run and try it out. On Sun, Mar 9, 2014 at 1:17 AM, Ook wrote: Are you running an OP4 server or other hlds (not srcds) server? On 03/08/2014 04:49 PM, ics wrote: My servers tend to restart themselves. Only crash so far that i've seen that doesn't restart itself is L4D2 & CSGO when they crash on some memory error for being on too long in a row. -ics Ook kirjoitti: I know this topic gets brought up from time to time, but I haven't yet found a good solution to the problem of auto-restarting an hlds server when it crashes. I am once again trying to move my OP4 server from Winbloze to linux. The last time I did this I gave up because I couldn't get it to run reliably, and the restart script that comes with the linux version did not work. It would crash and just sit there, some sort of debugger problem that I was not able to reliably resolve. It also had a nasty tendency to segfault on startup about 50% of the time. So - who is running hlds servers on linux, and how do you handle restarting after a crash? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
I'm only running CS 1.6 and my hlds_run is patched. The bug and hotfix script are the same though, so you can just check the run() function if it contains the bug, or change the script above to reference hlds_run and try it out. On Sun, Mar 9, 2014 at 1:17 AM, Ook wrote: > Are you running an OP4 server or other hlds (not srcds) server? > > > On 03/08/2014 04:49 PM, ics wrote: >> >> My servers tend to restart themselves. Only crash so far that i've seen >> that doesn't restart itself is L4D2 & CSGO when they crash on some memory >> error for being on too long in a row. >> >> -ics >> >> Ook kirjoitti: >>> >>> I know this topic gets brought up from time to time, but I haven't yet >>> found a good solution to the problem of auto-restarting an hlds server when >>> it crashes. I am once again trying to move my OP4 server from Winbloze to >>> linux. The last time I did this I gave up because I couldn't get it to run >>> reliably, and the restart script that comes with the linux version did not >>> work. It would crash and just sit there, some sort of debugger problem that >>> I was not able to reliably resolve. It also had a nasty tendency to segfault >>> on startup about 50% of the time. >>> >>> So - who is running hlds servers on linux, and how do you handle >>> restarting after a crash? >>> >>> ___ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux >> >> >> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
Are you running an OP4 server or other hlds (not srcds) server? On 03/08/2014 04:49 PM, ics wrote: My servers tend to restart themselves. Only crash so far that i've seen that doesn't restart itself is L4D2 & CSGO when they crash on some memory error for being on too long in a row. -ics Ook kirjoitti: I know this topic gets brought up from time to time, but I haven't yet found a good solution to the problem of auto-restarting an hlds server when it crashes. I am once again trying to move my OP4 server from Winbloze to linux. The last time I did this I gave up because I couldn't get it to run reliably, and the restart script that comes with the linux version did not work. It would crash and just sit there, some sort of debugger problem that I was not able to reliably resolve. It also had a nasty tendency to segfault on startup about 50% of the time. So - who is running hlds servers on linux, and how do you handle restarting after a crash? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
This bug is still in srcds_run: https://github.com/ValveSoftware/halflife/issues/210 hlds_run should not be affected anymore I use a small script that hotfixes srcds_run and then runs it, so validate doesn't remove the patch: eval "$(sed 's/test -z "$AUTO_UPDATE";/test -z "$RESTART";/' srcds_run)" On Sun, Mar 9, 2014 at 12:49 AM, ics wrote: > My servers tend to restart themselves. Only crash so far that i've seen that > doesn't restart itself is L4D2 & CSGO when they crash on some memory error > for being on too long in a row. > > -ics > > Ook kirjoitti: > >> I know this topic gets brought up from time to time, but I haven't yet >> found a good solution to the problem of auto-restarting an hlds server when >> it crashes. I am once again trying to move my OP4 server from Winbloze to >> linux. The last time I did this I gave up because I couldn't get it to run >> reliably, and the restart script that comes with the linux version did not >> work. It would crash and just sit there, some sort of debugger problem that >> I was not able to reliably resolve. It also had a nasty tendency to segfault >> on startup about 50% of the time. >> >> So - who is running hlds servers on linux, and how do you handle >> restarting after a crash? >> >> ___ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux > > > > ___ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
Re: [hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
My servers tend to restart themselves. Only crash so far that i've seen that doesn't restart itself is L4D2 & CSGO when they crash on some memory error for being on too long in a row. -ics Ook kirjoitti: I know this topic gets brought up from time to time, but I haven't yet found a good solution to the problem of auto-restarting an hlds server when it crashes. I am once again trying to move my OP4 server from Winbloze to linux. The last time I did this I gave up because I couldn't get it to run reliably, and the restart script that comes with the linux version did not work. It would crash and just sit there, some sort of debugger problem that I was not able to reliably resolve. It also had a nasty tendency to segfault on startup about 50% of the time. So - who is running hlds servers on linux, and how do you handle restarting after a crash? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
[hlds_linux] Linux equivalent of serverdoc aka how to auto restart a crashed hlds server?
I know this topic gets brought up from time to time, but I haven't yet found a good solution to the problem of auto-restarting an hlds server when it crashes. I am once again trying to move my OP4 server from Winbloze to linux. The last time I did this I gave up because I couldn't get it to run reliably, and the restart script that comes with the linux version did not work. It would crash and just sit there, some sort of debugger problem that I was not able to reliably resolve. It also had a nasty tendency to segfault on startup about 50% of the time. So - who is running hlds servers on linux, and how do you handle restarting after a crash? ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux