04-16-2009, 10:53 PM
Hello everybody
I have been struggling with a proper way of setting up a minimal php panel where you can start and stop srcds.
So far I thought about having srcds wrapped in a shell script that restarts srcds if it quits. Then I could just send rcon "quit" to the server to restart it, via php. But I wouldn't know how to stop it totally or to start it if it's stopped. And the other thing is, if someone changes the rcon password, how do i figure it out? It seems that you can set the rcon password in server.cfg, autoexec.cfg or anywhere else.
I also thought of a fifo file, that srcds reads from as standard input, and echoing commands from php to that fifo, but srcds wouldn't react, or I dont have enough knowledge about fifos.
So how should I go for controlling srcds, or obtaining the rcon. I do have acces to the srcds' files.
Thanks in advance
I have been struggling with a proper way of setting up a minimal php panel where you can start and stop srcds.
So far I thought about having srcds wrapped in a shell script that restarts srcds if it quits. Then I could just send rcon "quit" to the server to restart it, via php. But I wouldn't know how to stop it totally or to start it if it's stopped. And the other thing is, if someone changes the rcon password, how do i figure it out? It seems that you can set the rcon password in server.cfg, autoexec.cfg or anywhere else.
I also thought of a fifo file, that srcds reads from as standard input, and echoing commands from php to that fifo, but srcds wouldn't react, or I dont have enough knowledge about fifos.
So how should I go for controlling srcds, or obtaining the rcon. I do have acces to the srcds' files.
Thanks in advance