Since L4D2 servers, correct me if I'm wrong, don't accept console input, so the method it uses to shut them down (sends 'quit' to their screen session) wont work properly.

You can get around this, however, using nemrun's -shutdownscript option. This lets you specify a script that will shut down your servers (instead of letting nemrun handle it), so you could write your own quick&dirty script to shut them down (such as using rcon) and then everything should work properly.

For instance, here's a really basic rcon implementation in python:
http://nemu.pointysoftware.net/cacti/scripts/rcon.py

So you could write a script like:
#!/bin/sh
python rcon.py server1.ip.here 27015 password_here quit
python rcon.py server2.ip.here 27015 password_here quit
python rcon.py server3.ip.here 27015 password_here quit
python rcon.py server4.ip.here 27015 password_here quit

And pass it to -shutdownscript with nemrun to handle killing your servers, in which case everything should work (but let me know if you run into issues/bugs)

- Neph

On 03/14/2011 12:39 AM, Peter Reinhold wrote:
On Fri, 11 Mar 2011 16:52:23 -0800, Nephyrin Zey wrote:
Adds -afternotifycmd for running a script after an update has completed.
Fixes -srvdir so people with servers installed in subdirs arn't
screwed (What, do you guys expect me to update *and* test this stuff?)
Actually fixes the empty lockfile bug. Probably.

1.7 download: http://www.nephyrin.net/tools/nemrun/1.7/
1.7 theme song: http://www.youtube.com/watch?v=6Zbi0XmGtMw

I have a single question, as I can't seem to find it mentioned in the examples.

Does this work with forked L4D(2) servers? Or will this shutdown all forks as soon as an update is detected?




_______________________________________________
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