17.09.2014, 23:00
How can i use putty to restart the server?
Type 'top'. Look for the samp server process 'samp03svr'. If you found it, press 'k' and enter the pid for the 'samp03svr' process and press enter. Then press enter again to use the default process kill signal.
The server now is offline. Now you can start him as you did the first time. If you dont know how to start it, use the search as theres plenty of tutorials on this. |
Your server files should be on the root or home then Type the nohup ./samp03svr &
|
nohup: ignoring input and appending output to `nohup.out' nohup: failed to run command `./samp03svr': No such file or directory |
Your server files should be on the root or home then Type the nohup ./samp03svr &
|
Why would you use the TERM signal? Send a signal that will properly initiate the OnGameModeExit sequence - sending TERM won't do that. Use 'kill -h' and use a better signal.
|
root@*******:~# nohup: ignoring input and appending output to `nohup.out' nohup: failed to run command `./samp03svr': No such file or directory |
#!/bin/sh log=samp.log dat=`date` samp="samp-server" dir="." cd $dir echo "${dat} watchdog script starting." >>${log} while true; do echo "${dat} Server exited, restarting..." >>${log} mv $dir/server_log.txt $dir/logs/server_log.`date '+%m%d%y%H%M%S'` "$dir/$samp" >> $log sleep 5 done
killall samp03svr
nohup ./samp03svr &