|
|
|
|
#1 |
|
Banned
![]() Join Date: Jun 2008
Posts: 30
Reputation: 0
|
Hello members,
My problem concerns about whether there is any restarter server to samp, for Linux? Is there such a thing? Please send me a quick answer, if possible... Sorry about my English, but I'm Polish and do not know too much about it... |
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Feb 2008
Posts: 41
Reputation: 0
|
All you need to use the program below is a Linux environment, and the possibility to use cron. This program will check if the samp02svr process is running, and if it isn't, start it up again. You'll need to install the following crontab:
Code:
*/5 * * * * /path/to/samp/checksamp.sh Code:
#!/bin/sh PROCESS_COUNT=$(ps -fu root | grep samp02svr | grep -v grep | wc -l) case $PROCESS_COUNT in 0) /path/to/samp02svr & ;; 1) #OK, program is already running once ;; *) #OK, program is already multiple times ;; esac |
|
|
|
|
|
#3 |
|
Banned
![]() Join Date: Jun 2008
Posts: 30
Reputation: 0
|
Thank you for your help and for that I somehow understand.
Cheers
|
|
|
|
|
|
#4 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Apr 2008
Posts: 217
Reputation: 0
|
I have 3 server on linux and sometimes they have error on reading the game mode, filterscprts or so bud more as nohup ./samp02Xsvr i dont use and they work perfect
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Making samp server and getting it online and in server list | Doom8890 | Server Support | 34 | 15/12/2012 01:45 PM |
| [TUT]Eigenen Server machen + Server online bekommen | ~Ricky~ | Archive | 7 | 27/02/2011 10:13 PM |
| How do I get my server online? | Olek95 | Server Support | 0 | 14/04/2010 08:38 PM |
| [HELP]my server is online but not in the internet server list.... | kevinwalter | Server Support | 17 | 16/08/2009 02:29 PM |
| Online server help =( | aidiewright | Server Support | 12 | 01/02/2009 07:33 PM |