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

Re : [Server restart from website]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lolness
Member
Join Date: Aug 2012
Old 08-26-2012 , 15:29   Re : [Server restart from website]
Reply With Quote #1

can any1 plz tell me how i can restart my server through a website when it crashes?
is there any plugin which can have the server restart option on the server's website, any php coding or anything like that??

main reason for this here is bcoz when im at work and server crashes,theres no one to restart it as the server runs from my house...so i was looking for an alternative as to hw i can make others restart the server when im at work & nt at home??

by others i mean,other admins, silver players & goldnepalyers...

'h' flag for golden.
'g' flag for silver.
admins, u guys shud be knowing.

i hope u understood me,plz help tyy!!
lolness is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-28-2012 , 11:57   Re: Re : [Server restart from website]
Reply With Quote #2

This has nothing to do with AMXX, moved
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
talha
Senior Member
Join Date: Jul 2011
Location: On Earth
Old 08-28-2012 , 14:04   Re: Re : [Server restart from website]
Reply With Quote #3

no need for server restart from website rather you can use servermonitor so when your server crashes it will restart automatically in 2 seconds
__________________
PLz do visit my sites
www.igcse.tk
www.alevel.tk
mY Steam
talha is offline
Send a message via Yahoo to talha
lolness
Member
Join Date: Aug 2012
Old 08-28-2012 , 14:21   Re: Re : [Server restart from website]
Reply With Quote #4

talha, can u plz give me a link as to where it is?
is it here in amxx forum?
if yes, plz link
lolness is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-28-2012 , 14:49   Re: Re : [Server restart from website]
Reply With Quote #5

https://forums.alliedmods.net/search.php
__________________
Mavrick4283 is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 08-29-2012 , 11:54   Re: Re : [Server restart from website]
Reply With Quote #6

Hi lolness!
You also use a Batch Script to keep your server running.

Open Notepad and paste this:

@echo off
echo Starting the Server
:start
start /wait hlds -console -game cstrike -port 27015 +maxplayers 24 -map "de_dust2"
echo Server Crashed at %time%
echo Restarting Server
goto start

Edit the line containing hlds to your preference.
This code start the server in Console Mode on Port 27015 with Map de_dust2 and Max Players 24.

Now save it in the same folder as hlds.exe is with a nice name such as "start_server.bat" and remember to add .bat at the end of the name and also select "Save as Type" to "All Files".

Now just double click this batch file. A Command Prompt Window will open and it will say "Starting the Server". Then your server will automatically start. The Batch will keep running (consuming almost negligible resources) and checking the server to see if its running, if it finds it otherwise than it restarts it.
Regards,
RaHBeR

Last edited by RaHBeR; 08-29-2012 at 11:59.
RaHBeR is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 08-29-2012 , 13:22   Re: Re : [Server restart from website]
Reply With Quote #7

And for linux?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
RaHBeR
๏_๏
Join Date: Jul 2012
Old 08-29-2012 , 16:32   Re: Re : [Server restart from website]
Reply With Quote #8

Quote:
Originally Posted by quark View Post
And for linux?
Hi quark!
I don't know as I have never used Linux. But I am sure there would be some kind of script functionality for automating tasks in it, which could be used for this purpose.
Regards,
RaHBeR
RaHBeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-29-2012 , 23:32   Re: Re : [Server restart from website]
Reply With Quote #9

-autoupdate will do it for you automatically. There are also shell scripts out there that can assist with this too
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
lolness
Member
Join Date: Aug 2012
Old 08-30-2012 , 03:02   Re: Re : [Server restart from website]
Reply With Quote #10

Hmm I see, thank you all for your suggestions
lolness is offline
Reply



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 01:30.


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