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 .
Fix Server Restart
- laimiukas3
- Moderatorius
- Posts: 4569
- Joined: 2012 Aug 03 01:12
- Skype: laimiukas3
- Location: Vilnius
- Contact:
Re: Fix Server Restart
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
i type etc/rc.local but wrong what i need do ?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
-- 2016 Jun 30 04:44 --
Work Like This or No ?
Who is online
Users browsing this forum: No registered users and 3 guests