Fix Server Restart

Forumas specialiai skirtas pamokoms kuriant CS 1.6 serverį
Post Reply
Yassine
O taip. Jis jau surinko 50 žinučių!
Posts: 58
Joined: 2016 Apr 14 21:35

Fix Server Restart

Post 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 :) .

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Fix Server Restart

Post 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
Image
Image
Image

Yassine
O taip. Jis jau surinko 50 žinučių!
Posts: 58
Joined: 2016 Apr 14 21:35

Re: Fix Server Restart

Post 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 ?
Attachments
Screenshot_1.png

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests