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

Reply via email to