Restart.sh not working :s - 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: Restart.sh not working :s (
/showthread.php?tid=475777)
Restart.sh not working :s -
iGetty - 14.11.2013
I've just configured the VPS that I am using, with "restart.sh" and when I go onto the command line and type:
cd /samp03
nohup ./restart.sh &
It shows:
[root@server2 samp03]# nohup: appending output to `nohup.out'
nohup: cannot run command `./restart.sh': No such file or directory
[3]+ Exit 127 nohup ./restart.sh
Even though it's there, and the chmod is to 777.
Is there any other way WITHOUT cronjobs (since I really don't understand them for some reason), that I can setup a script to automatically restart the samp server when it crashes/"rcon exit"?
Thanks.
Re: Restart.sh not working :s -
woot - 15.11.2013
chmod +x restart.sh
Re: Restart.sh not working :s -
iGetty - 15.11.2013
Didn't work woot.
Re: Restart.sh not working :s -
jakejohnsonusa - 15.11.2013
This "`./restart.sh': No such file or directory" tells me your path is wrong.
Make sure the restart.sh is in the same directory as the samp03 server. Then start it (PUTTY) and change the directory (cd /samp03/). Then do nohup ./restart.sh &
If you were smart and did all this, which I expect you probably did, then the issue is probably a failure within the restart.sh script. Perhaps post that for us to go over.
Re: Restart.sh not working :s -
Mauzen - 15.11.2013
post a "ls -la" please. maybe we can see something in there.
Re: Restart.sh not working :s -
iGetty - 15.11.2013
Nvm works.