Posted: Tue Sep 08, 2009 4:02 pm Post subject: linux and serverdoc
I read on the forums about how linux functions are not that much of a priority, but I am a long time user [licensed] of serverdoc, and have combined win and lnx servers. So I like to keep the same controller for both. makes my life a bit easier.
I really like the linux implementation.. I have restricted telnet to only accept from one host, and am quite happy with it.
Except.. if I 'stop' the server in serverdoc [not sdcontrol].. the server stops on the remote .
if I exit the serverdoc, the stop isn't sent
if I select another server from the list.. it starts the server with the new target, but doesn't terminate the prior running server.
I am guessing the routine to term the server is already in serverdoc, would it be much work to add that to the routines that
shutdown the serverdoc [using exit, or stop from sdcontrol], and to stop the server, if a new selection is made, before running the new selection
OK, from using the linux connection extensively this week, I have a couple of assumptions about how you've implemented it..
When a command such as lx:/home/userdir/scrds_i686 is executed, it appears to me, that first a cd /home/userdir is issued, and then ./srcds_i686 is run. [If this is NOT the case, it would be REALLY good if it was lol].
If the first case is true, would it be at all possible to issue this command prior to execing the program? [and after the directory has changed]
And finally, when running the hldsupdate in windows, I am guessing there is a match on the program name, in order to put the server status to isUPDATING. Can the same match be done on ./steam.exe for linux?
sorry for being a pain, but like I said, I'd much rather have the one control tool for both my win and lin machines
Does the prerun work?
Added PRERUN wwwconfig.cfg option - will always run this command before starting normal command
Just like the "run" line but this one is ran first when starting the server."
Don't forget the path infront of the "export ...." command.
Yes, you can do this for any exe, show different html depending on filename etc.
Added <SD_APP_program.exe> condition to template system (SD PRO)
This works like the other conditions, program.exe is the .exe filename in command line.
for example, in template.html
<SDSERVERRUNNING><img src="http://mywebserver/greenlight.gif"></SD> shows greenlight.gif if the server is running,
<SD_APP_HLDS.EXE><img src="http://mywebserver/hldsicon.gif.gif"></SD> shows hldsicon.gif if the exe serverdoc is running is hlds.exe"
Using this you can trigger the auto refresh html etc.
but I don't believe the prerun is being issued via the lx: I checked the auth log, and there are three attempts to login, which fail with user unknown, then the final login is successful, and the run command is issued.
Perhaps an issue with prerun not getting the correct credentials for telnet?
Oct 27 23:35:44 SEED login: (pam_unix) bad username 
Oct 27 23:35:44 SEED login: FAILED LOGIN (1) on 'pts/1' from *.*.*.* FOR `UNKNOWN', User not known to the underlying authentication module
Oct 27 23:35:46 SEED login: (pam_unix) session opened for user serverop by (uid=0)
Oct 27 23:40:22 SEED gdm: (pam_unix) session opened for user root by (uid=0)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum