SA-MP Forums Archive
Restarter for Linux (please help!) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Restarter for Linux (please help!) (/showthread.php?tid=53412)



Restarter for Linux (please help!) - SEC - 18.10.2008

Hey Guyz!
Iґm a Linux-Noob and Iґm not able to make a restarter script for
my sa-mp-server so please is there anyone who can give me a code?

my server-directory is :root/home/samp

I hope to get an answer!


Re: Restarter for Linux (please help!) - Vetle - 18.10.2008

Quote:
Originally Posted by Westie
Well done for the epic bump. I suppose you could create a simple shell script like:

Code:
#!/bin/bash

while true
do
  nohup ./samp022svr &
done
or something like that.
//

try:


Code:
#!/bin/bash

while true
do
   nohup root/home/samp/samp-server &
done



Re: Restarter for Linux (please help!) - SEC - 18.10.2008

sry doesnґt work. I got this error : bad interpreter: No such file or directory


Re: Restarter for Linux (please help!) - SEC - 18.10.2008

now there is this error : /bin/sh^M: bad interpreter: No such file or directory



Re: Restarter for Linux (please help!) - SEC - 18.10.2008

i use debian 4.0 64-bit (sry for doublepost i forgot to answer this question)


Re: Restarter for Linux (please help!) - SEC - 18.10.2008

/bin/bash <---



Re: Restarter for Linux (please help!) - max007 - 12.01.2009

WHat program should i use and where do i have to put that code Im using putty.

And donґt tell me to use wikipedia or ****** i did but i found only CODE and i dont know where how and what program to use...


Re: Restarter for Linux (please help!) - f3llah1n - 12.01.2009

https://sampwiki.blast.hk/wiki/Linux_Ser..._Server_Online


Re: Restarter for Linux (please help!) - max007 - 12.01.2009

Quote:
Originally Posted by f3llah1n
Rofl! Didnt u read what i have written?! I said that i have looked at THAT page at wikipedia but i DONT KNOW where to write that code!!!


Re: Restarter for Linux (please help!) - f3llah1n - 12.01.2009

You said Wikipedia, and that isnt Wikipedia, hence the reason I posted it.

It tells you on the page where to put everything and how to run it.

Though, then again, you can't tell the difference between Wikipedia and sites running Wikimedia...