What about creating a temp file, or perhaps a pidfile with your
serverstart. On serverstop it gets removed. The skript triggered by cron
only checks for running servers if the pidfile exists.
That way you can be certain the cron won´t start the server if you
stopped it for maintenance.
Am 26.05.2011 20:57, schrieb Eric Riemers:
Perhaps, but then it comes back to my first question "something simple" I
rather not install a full fledged frontend.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of kama
Sent: donderdag 26 mei 2011 20:40
To: Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] remote restart of screen session?
Isnt there a gameserver plugin for webmin?
/Bjorn
On Thu, 26 May 2011, Eric Riemers wrote:
Yes, but does it include a way to stop/start it, even if its across
multiple servers?
The thing is that in the end I want to have a option to restart a
server based on a actual admin doing the "trigger" because most of the
time the servers run fine. If I do maintenance or anything other weird
stuff I don’t want some crontab to set it. We actually have twitter
(yes kill me slowly) to announce when a server is not responding
anymore. It's easy for admins to install a client that announces the
twitter feed and they can then act upon it.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Evan
Sent: donderdag 26 mei 2011 19:55
To: Half-Life dedicated Linux server mailing list
Subject: Re: [hlds_linux] remote restart of screen session?
I also made a small PHP script very similar to the way yours sounds.
I further more logged the screen output and displayed it to the users
and updated via JS with ajax method. I allow sending commands via the
web interface with ajax. Basically the full (or limited, I can limit
what commands are used) console experience without having access to
SSH or any access to the box.
On Thu, May 26, 2011 at 8:44 AM, Daniel Vogel<[email protected]>
wrote:
I'm using a web interface for my servers I made in PHP and I
experienced similar issues with freezing servers not being able to
be shut down by any admin except me (via ssh). The solution I use is
simple.
Since my web interface names all screens it starts tf_$id (like
tf_15) I can simply provide a kill switch which would use `ps aux |
grep tf_15` to get the PID of the screen and then kill it, all in
one bash script which simply takes the server id as parameter.
So if you give your screens unique names it's only one PHP and bash
script that finds and kills the server.
--
Mit freundlichen Grüssen,
Sincerely Yours,
Daniel Vogel
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux