header
Welcome Guest to ServerDoc - Auto Restart crashed servers and programs (game www ftp servers) with remote control panel
ServerDoc

· About ServerDoc
· Download/Purchase
· Getting Started
· User Guide
· Forums
· Feedback/Suggestion
· Mailing List
· Link To Us
· Your Account
· Linux


ServerDoc - Auto Restart crashed servers and programs (game www ftp servers) with remote control panel: Forums

Serverdoc :: View topic - linux and serverdoc
linux and serverdoc

 
Post new topic   Reply to topic    Serverdoc Forum Index -> Serverdoc
View previous topic :: View next topic  

Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Tue Sep 08, 2009 4:02 pm    Post subject: linux and serverdoc Reply with quote

hya

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
?
thanks
rich
Back to top
View user's profile Send private message
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1822

PostPosted: Tue Sep 08, 2009 6:35 pm    Post subject: Reply with quote

Hi Rich,

I shall have a look at the issues raised Smile

Regards,
Stephen
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Tue Sep 08, 2009 10:19 pm    Post subject: Reply with quote

Hi again

I have redone some tests today.
I previously thought that the 'run' selection on the *SDROTATEDROPBOXFRIENDLY* wasn't stopping the prior process first, but it does seem to be doing this ok Smile

So it's just when 'stopping' via SDCONTROL that the process isn't terminated, and also when 'exit serverdoc' is selected on the SD itself

rich
Back to top
View user's profile Send private message
Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Thu Sep 10, 2009 9:43 pm    Post subject: Reply with quote

Hi Stephen,

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]
export LD_LIBRARY_PATH=".:bin:$LD_LIBRARY_PATH"

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?

Thanks
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 Smile

rich
Back to top
View user's profile Send private message
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1822

PostPosted: Sun Sep 20, 2009 10:36 am    Post subject: Reply with quote

Hi Rich,

Yes a CD is issued.

Does the prerun work?
"V0.88b
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.
"V0.84b
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.

( http://www.serverdoc.com/modules.php?name=Forums&file=viewtopic&p=2868& )

Sorry but have been busy. Sad Sad
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1822

PostPosted: Fri Sep 25, 2009 8:35 pm    Post subject: Reply with quote

Hi Digitalien,

Can you please test the "latest serverdoc" (V1.00.071) in downloads section. Test to see if linux app is closed when closing serverdoc.

Thanks Smile
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Tue Oct 27, 2009 1:24 am    Post subject: Reply with quote

Hi
I have tried the prerun, but it doesn't appear to be working for me.


I added this to the wwwconfig.cfg

prerun lx:/home/serverop/CSS/export LD_LIBRARY_PATH=".:bin:LD_LIBRARY_PATH"

run lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip 202.60.82.211 -port 27015 -maxplayers 24 -tickrate 66 +map de_dust

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?

cheers
rich
Back to top
View user's profile Send private message
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1822

PostPosted: Tue Oct 27, 2009 6:09 am    Post subject: Reply with quote

Can you please post the part of serverdoc.log where it starts up?
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Tue Oct 27, 2009 6:57 am    Post subject: Reply with quote

10-26-2009 11:59:24 Attempting Telnet Connection
10-26-2009 11:59:24 Started lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip 202.60.82.211 -port 27015 -maxplayers 24 -tickrate 66 +map de_dust
10-26-2009 11:59:25 Telnet username sent
10-26-2009 11:59:26 Telnet password sent
10-26-2009 11:59:27 Telnet username sent
10-26-2009 11:59:44 Crash - Restarting lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip 202.60.82.211 -port 27015 -maxplayers 24 -tickrate 66 +map de_dust
10-26-2009 11:59:44 Started lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip 202.60.82.211 -port 27015 -maxplayers 24 -tickrate 66 +map de_dust
Back to top
View user's profile Send private message
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1822

PostPosted: Tue Oct 27, 2009 7:49 am    Post subject: Reply with quote

how often is serverdoc configured to check if the server is running? Can you put this to 60sec just to test prerun then return to normal. Thanks.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Digitalien



Joined: May 05, 2006
Posts: 57

PostPosted: Tue Oct 27, 2009 1:01 pm    Post subject: Reply with quote

set the restart time to 60 seconds. Supplied output for serverdoc.log, auth.log and from the CLI, querying the process.
SERVERDOC.LOG:

10-26-2009 23:35:53 Serverdoc V1.00.07 Starting up
10-26-2009 23:35:53 Starting winsock
10-26-2009 23:35:53 Starting internal webserver
10-26-2009 23:35:53 Webserver running on port: 27017 (IP *.*.*.*)
10-26-2009 23:35:53 Attempting Telnet Connection
10-26-2009 23:35:53 Started lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip *.*.*.* -port 27015 -maxplayers 24 -tickrate 66 +map de_dust
10-26-2009 23:35:54 Telnet username sent
10-26-2009 23:35:55 Telnet password sent
10-26-2009 23:35:56 Telnet username sent
10-26-2009 23:37:53 Crash - Restarting lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip *.*.*.* -port 27015 -maxplayers 24 -tickrate 66 +map de_dust
10-26-2009 23:37:53 Started lx:/home/serverop/CSS/srcds_i686 -console -game cstrike -nohltv -ip *.*.*.* -port 27015 -maxplayers 24 -tickrate 66 +map de_dust

CONSOLE QUERY FOR SRCDS PROCESS:

serverop 2517 0.0 0.0 1644 512 pts/0 R+ 23:36 0:00 grep src
serverop@SEED:~$ ps aux | grep src
serverop 2557 0.0 0.0 1648 520 pts/0 S+ 23:36 0:00 grep src
serverop@SEED:~$ ps aux | grep src
serverop 2582 0.0 0.0 1644 516 pts/0 S+ 23:37 0:00 grep src
serverop@SEED:~$


DEBIAN AUTH LOG:

Oct 27 23:35:44 SEED login[2494]: (pam_unix) bad username []
Oct 27 23:35:44 SEED login[2494]: FAILED LOGIN (1) on 'pts/1' from *.*.*.* FOR `UNKNOWN', User not known to the underlying authentication module
Oct 27 23:35:46 SEED login[2494]: (pam_unix) session opened for user serverop by (uid=0)
Oct 27 23:40:22 SEED gdm[2390]: (pam_unix) session opened for user root by (uid=0)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Serverdoc Forum Index -> Serverdoc All times are GMT
Page 1 of 1

 
Jump to:  
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

Powered by phpBB © 2004 phpBB Group
Version 2.1 by Nuke Cops © 2003 http://www.nukecops.com
TBlue by DR Designs © 2004

Forums ©
footer
Copyright 2004 serverdoc.com

Web site engine code is Copyright 2003 by PHP-Nuke All Rights Reserved PHP-Nuke is Free Software released under the GNU/GPL license