View Single Post
haZh
Member
Join Date: May 2017
Location: Sri Lanka
Old 07-01-2018 , 07:19   Re: Plugin /rebootserver
Reply With Quote #2

Are you hosting on Linux? If you are looking for a way other than directly restarting the server from an in-game command, this is a basic Linux *.sh script to restart your server easily. Not recommending you to run this if you don't understand the commands below, specially if you are running any other critical programs within Linux screens. Just google it and you will figure this out.

Make sure to change the cd <directory> according to your's;

Quote:
#!/bin/sh
killall screen
cd cs
screen -A -m -d -S cs ./hlds_run -console -game cstrike +maxplayers 32 +map de_dust +ip <your.server.ip.here>
exit 0
Save this as something like restart.sh in your Linux server and run it as ./restart.sh from your remote SSH client such as Putty whenever you want to restart. There are even mobile versions of Putty like Termius so you might wanna check it out.
__________________

Last edited by haZh; 07-01-2018 at 07:27.
haZh is offline