SA-MP Forums Archive
Auto start server. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Auto start server. (/showthread.php?tid=619860)



Auto start server. - iLearner - 23.10.2016

Hey,

I've got a dayz server, last night it was runing fine until i was awake but when i went to sleep & woke up in the morning i noticed it was off somehow, logs dont show much either and its second time.

So, i am here to ask is there any bash script that can relaunch smp03svr process as soon as it closes? and if yes could you bother to post it? help will be appreciated.

Last logs...

PHP код:
[07:46:25] [join] [AcG]Flostradamus has joined the server (33:36.76.158.130)
[
07:46:35] [AcG]Flostradamus has logged in.
[
07:46:35] [INV] [AcG]Flostradamus[33]'s inventory loaded.
[07:46:41] [INV] [TGG]MMAYOR[12]'
s inventory saved.
[
07:46:41] [INV] [TGG]MMAYOR[12]'s inventory saved.
[07:46:41] [part] [TGG]MMAYOR has left the server (12:1)
[07:47:05] [connection] 180.190.68.57:50106 requests connection cookie.
[07:47:06] [connection] incoming connection: 180.190.68.57:50106 id: 12
[07:47:06] [connection] 121.157.207.24:60367 requests connection cookie.
[07:47:07] [connection] incoming connection: 121.157.207.24:60367 id: 34
[07:47:08] [join] [CP]LegendZ has joined the server (12:180.190.68.57)
[07:47:08] [connection] 180.241.213.141:56798 requests connection cookie.
[07:47:09] [join] Woonz has joined the server (34:121.157.207.24)
[07:47:09] [connection] incoming connection: 180.241.213.141:56798 id: 35
[07:47:10] [join] [TGG]MMAYOR02 has joined the server 
[07:47:19] Woonz has logged in.
[07:47:27] [TGG]MMAYOR02 has logged in.
[07:47:38] [CP]LegendZ has logged in.
[07:47:38] [INV] [CP]LegendZ[12]'
s inventory loaded
PS: its linux


Re: Auto start server. - Micko123 - 23.10.2016

Just put in crashdetect plugin and then wait for the logs


Re: Auto start server. - iLearner - 23.10.2016

I came to know that there's a bash script which automatically starts server when it goes down.


Re: Auto start server. - Micko123 - 23.10.2016

I am not sure but if server crashes there must be problem. If you don't fix problem it will keep crashing and you will loose players. I suggest to use that crashdetect.so and fix the problem..


Re: Auto start server. - Gotham - 23.10.2016

Wow [TGG]MMAYOR is a guy in a server that I know he is playin right now!XD


Re: Auto start server. - iLearner - 23.10.2016

I will micko, thanks to both of you. (Dice & miko).


Re: Auto start server. - Micko123 - 23.10.2016

Np