Restart.sh not working :s
#1

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.
Reply
#2

chmod +x restart.sh
Reply
#3

Didn't work woot.
Reply
#4

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.
Reply
#5

post a "ls -la" please. maybe we can see something in there.
Reply
#6

Nvm works.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)