Raised This Month: $51 Target: $400
 12% 

How to auto-restart on crash under Linux?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LightGamin
Member
Join Date: Apr 2011
Old 05-02-2013 , 08:23   How to auto-restart on crash under Linux?
Reply With Quote #1

Hello everyone, I am using Linux Ubuntu 12.10 and I compiled the 2.6.38.8 version over my core. I want to know this: How can my server come up, if it suddenly crashes?

So do you know how to modify the hlds_run to restart on crash?

I type this, because I want to run the server in the background, so I will have no idea that the server is down. I think that will be, because now I run it from terminal and it crashes on every next day. Rarely, but do. The last thing in the terminal is:

Segmented fault (core dumped)

But above I can see this:

Server crashed - something like this.

If it crash again today I will copy and paste it here.

Last edited by LightGamin; 05-02-2013 at 08:24. Reason: Second paragraph
LightGamin is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 05-02-2013 , 10:19   Re: How to auto-restart on crash under Linux?
Reply With Quote #2

Quote:
Originally Posted by LightGamin View Post
Hello everyone, I am using Linux Ubuntu 12.10 and I compiled the 2.6.38.8 version over my core. I want to know this: How can my server come up, if it suddenly crashes?
Search the forum.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 05-02-2013 , 10:40   Re: How to auto-restart on crash under Linux?
Reply With Quote #3

search by keywords like linux+ubuntu+restart don't use the plus (+) symbol in all your researches
__________________
ANTICHRISTUS is offline
LightGamin
Member
Join Date: Apr 2011
Old 05-02-2013 , 10:51   Re: How to auto-restart on crash under Linux?
Reply With Quote #4

And that is what I see when the server crashes

Code:
Uploading dump (in-process) [proxy '']
/tmp/dumps/crash_20130502174010_1.dmp
success = yes
response:  CrashID=bp-74b54a75-eace-49cc-bf57-877e32130502

Segmentation fault (core dumped)
LightGamin is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 05-02-2013 , 11:14   Re: How to auto-restart on crash under Linux?
Reply With Quote #5

this wont help.. check ur logs.
sami_spt is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-02-2013 , 11:29   Re: How to auto-restart on crash under Linux?
Reply With Quote #6

Erm, anyone noticed that he is using hlds_run? The last time i installed a linux server i didn't had a hlds_run file anymore.
So you should update your server with steamCMD first as old binaries are not supported here.
__________________

Mordekay is offline
LightGamin
Member
Join Date: Apr 2011
Old 05-03-2013 , 10:01   Re: How to auto-restart on crash under Linux?
Reply With Quote #7

I have to update it and the hlds_run is still there bro, still running wih the same ommand, so I need your assistance.

I checked amxmodx/logs, but there ware no logs of crash. It seems that not the server, but the terminal under linux crashes.

Last edited by LightGamin; 05-03-2013 at 10:01.
LightGamin is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 05-03-2013 , 12:44   Re: How to auto-restart on crash under Linux?
Reply With Quote #8

It is still there because the files do not get removed or overwritten. Backup your custom files and addons folder, delete your old server and install a new one using steamCMD.
Then you need to run the new server, there is already a howto and wiki available iirc.
__________________

Mordekay is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode