Raised This Month: $51 Target: $400
 12% 

Nemrun server restart


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
moxie2020
Veteran Member
Join Date: Aug 2011
Old 09-07-2012 , 05:33   Nemrun server restart
Reply With Quote #1

Nemrun is running the updates for my servers just fine, however, it is not killing and restarting the servers even though it appears to think it is:

Quote:
[Fri Sep 7 02:23:43 PDT 2012] :: Cleaning downloads folder of files older than 10 days
[Fri Sep 7 02:23:43 PDT 2012] :: -updatefirst specified, rebooting other servers now that update is ready.
[Fri Sep 7 02:23:43 PDT 2012] :: Killing any other servers.
[Fri Sep 7 02:23:43 PDT 2012] :: Killing shared screens: "tf00,tf01,tf02,tf03,tf04,tf05,tf06,tf07,tf08 ,tf09,tf10,tf11"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf00"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf01"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf02"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf03"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf04"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf05"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf06"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf07"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf08"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf09"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf10"
[Fri Sep 7 02:23:43 PDT 2012] :: Killing screen "tf11"
[Fri Sep 7 02:23:43 PDT 2012] :: Freeing update lock
[Fri Sep 7 02:23:43 PDT 2012] :: Update check complete
[Fri Sep 7 02:23:43 PDT 2012] :: Update daemon mode. Waiting a few seconds and checking again!
I am using a python script and it is likely the issue:

PHP Code:
UPDATE_COMMAND 'screen -d -m -U -S tfupdate ' + \
                 
'./nemrun ' + \
                 
'-nemlog "runlogs/updater_%Y%m%d%H%M%S.log" ' + \
                 
'-cleandownloads 10 ' + \
                 
'-autoupdate ' + \
                 
'-steamdir .. ' + \
                 
'-srvdir . ' + \
                 
'-sharedscreens ' + \
                 
','.join(['{prefix}{}'.format('{:02}'.format(x), prefix=SESSION_PREFIX) for x in range(len(SERVERS))]) + \
                 
' ' + \
                 
'-updatefirst ' + \
                 
'-game tf ' + \
                 
'-updatedaemon' 
It appears to read the join statement for the -sharedscreens's correctly as evidenced by the log but it never actually kills any servers.

I am open to ideas.

Last edited by moxie2020; 09-07-2012 at 05:35.
moxie2020 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-07-2012 , 09:15   Re: Nemrun server restart
Reply With Quote #2

Just to be sure: The other servers are running in screens whose names are formatted in the same way? (i.e. tf01 rather than tf1)?

Actually, is it possible to show one of the scripts that starts the actual servers?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-07-2012 at 09:16.
Powerlord is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 09-07-2012 , 15:23   Re: Nemrun server restart
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
Just to be sure: The other servers are running in screens whose names are formatted in the same way? (i.e. tf01 rather than tf1)?

Actually, is it possible to show one of the scripts that starts the actual servers?
Yes they are and here is the launch commands:

Quote:
START_COMMAND = 'screen -A -m -d -S {session} ' + \
'./nemrun ' + \
'-game tf ' + \
'+ip {ip} ' + \
'-port {port} ' + \
'-nohltv ' + \
'+maxplayers {players} ' + \
'+servercfgfile server{serverindex}.cfg ' + \
'+mm_pluginsfile addons/metamod/metaplugins{serverindex}.ini ' + \
'+sm_basepath addons/sourcemod{serverindex} ' + \
'+map {startmap}'
The servers definitely all startup as they are supposed to and they display correctly as tf01-tf11.
If you would like the whole script I can PM it to you.

Basically there is a tf prefix then each session is assigned a number from 00-11 and it obviously is used to create the screen names as well as launch the servers.
moxie2020 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode