Raised This Month: $12 Target: $400
 3% 

Plugin /rebootserver


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roberth
New Member
Join Date: Jun 2018
Old 06-30-2018 , 22:33   Plugin /rebootserver
Reply With Quote #1

Hello, i searching for this plugin for amxmodx, clasic server 1.6

/rebootserver

I have server to VPS, and i to hard root: reboot, root: reboot

i want this plugin .. /rebootserver
Roberth is offline
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
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 07-01-2018 , 11:06   Re: Plugin /rebootserver
Reply With Quote #3

You could have a bit more finesse and instead of just killing all screens, use this:

Code:
screen -X -S cs quit
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
haZh
Member
Join Date: May 2017
Location: Sri Lanka
Old 07-01-2018 , 11:22   Re: Plugin /rebootserver
Reply With Quote #4

I was searching for that, thanks. But just took all screens off since I don't run any other critical screens and I have a habit of killing all possible services to free up my 512MB ram.
__________________
haZh is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode