Page 1 of 1
Fix Server Restart
Posted: 2016 Jun 27 02:56
by Yassine
Hello please what Commond to type in VPS for add script auto restart server if crashed or blocked
auto restart if anyone crash server or blocked

.
Re: Fix Server Restart
Posted: 2016 Jun 27 04:28
by laimiukas3
etc/rc.local
Code: Select all
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.cd /root/server directori && ./start exit 0
Re: Fix Server Restart
Posted: 2016 Jun 27 18:09
by Yassine
laimiukas3 wrote:etc/rc.local
Code: Select all
#!/bin/sh -e## rc.local## This script is executed at the end of each multiuser runlevel.# Make sure that the script will "exit 0" on success or any other# value on error.## In order to enable or disable this script just change the execution# bits.## By default this script does nothing.cd /root/server directori && ./start exit 0
i type etc/rc.local but wrong what i need do ?
-- 2016 Jun 30 04:44 --
Work Like This or No ?