I'm hosing game servers (Ravenshield) to our clan based upon the unreal2 engine, wine and Debian Squeeze.
I wrote a script to safely start/stop multiple instances of different game servers independently from each other. I used start-stop-daemon, which is a great stuff, although I've encountered some major issues:
1. It does not create the necessary pid file in the /var/run folder, therefore I can not find out whether the corresponding server is running or not.
2. I can not access to the start-stop-daemon as a user, only as root. It is a problem as the game admins can not start/stop/restart the servers, also it is difficult to interface it with a web-based control panel. I thought maybe DBUS could do that but it's not clear in my head how I would hook them up. Any idea?
Here is the script: http://pastebin.com/VmyyzHSV
Thanks for any help or useful advices.