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

Alternative to Nemrun?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
medic917
Senior Member
Join Date: Aug 2014
Old 09-27-2014 , 16:18   Alternative to Nemrun?
Reply With Quote #1

Hey guys,
I've been looking for a query autoupdate tool.

Nemrun is the only thing I found in this forum, but I'm using a linux script to run my servers that does not support -autoupdate.

Is there a query script (python or the like) that will shut down the server when the "server needs update" message shows in console? My servers autorestart when they shutdown, without the -autoupdate parameter.
medic917 is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 09-27-2014 , 16:28   Re: Alternative to Nemrun?
Reply With Quote #2

Use srcupdatecheck included in NemRun with your own shutdown script.
__________________

Last edited by tigerox; 09-27-2014 at 16:32.
tigerox is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-28-2014 , 19:12   Re: Alternative to Nemrun?
Reply With Quote #3

nemrun has an option to use a custom shutdown script. I forget which option it is, though.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
medic917
Senior Member
Join Date: Aug 2014
Old 10-01-2014 , 21:20   Re: Alternative to Nemrun?
Reply With Quote #4

ya its funny i tried the srcupdatecheck and it runs, i just haven't had the chance to test it out yet since there wasn't an update available when I tried it.

Will it update the server when i run srcupdatecheck and shut the server down? Even if I don't have -autoupdate parameters?
medic917 is offline
medic917
Senior Member
Join Date: Aug 2014
Old 10-01-2014 , 21:23   Re: Alternative to Nemrun?
Reply With Quote #5

After rereading your comments guys, it seems like srcupdatecheck doesnt automatically shut down the server when ran during the update needed message.

I also need -autoupdate parameters don't I for srcupdatecheck to even work? XD
medic917 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-02-2014 , 09:45   Re: Alternative to Nemrun?
Reply With Quote #6

By default, I don't find nemrun (nemrun-steamcmd that is) that useful.

No, for it to really be useful, you have to run it in update daemon mode.

Code:
================================================================================
EXAMPLE 2: Two tf2 servers with an update daemon:
================================================================================
   - [nemlog,corefile] Keeps logs in ./runlogs, and corefiles in ./cores, with
     custom timestamps.
   - [cleandownloads] On update, deletes files in downloads folder (sprays)
     older than 10 days
   - [steamdir] Steam is located two directories up
     (we're in mytf2server/orangebox/, with srcds_linux)
   - [srvdir] Relative to steam, the server is in mytf2server
   - [autoupdate] Autoupdate disabled on servers, since update daemon handles
     it.
   - All other options are passed to srcds.
   - [updatedaemon] Update daemon told it is an update daemon, not a server
   - [notifycmd] Update daemon runs ./notifyadmins.sh when an update is found
   - [sharedscreens] Updater is given comma separated list of servers running on
     this directory, so it can reboot them (bob and sam)
   - [updatefirst] Updater is told to reboot servers only after applying the
     update, which could possibly cause issues, but requires less downtime!

 :: Server 1

  screen -d -m -U -S bob taskset -c 2 ./nemrun \\
  -nemlog \"runlogs/bob_%Y%m%d%H%M%S.log\" \\
  -corefile \"cores/bob_%Y%m%d%H%M%S.core\" \\
  \\
  -game tf ...
 
 :: Server 2

  screen -d -m -U -S sam taskset -c 2 ./nemrun \\
  -nemlog \"runlogs/bob_%Y%m%d%H%M%S.log\" \\
  -corefile \"cores/bob_%Y%m%d%H%M%S.core\" \\
  \\
  -game tf ...

 :: Updater
 
  screen -d -m -U -S updater \\
  ./nemrun -nemlog \"runlogs/updater_%Y%m%d%H%M%S.log\" \\
  -cleandownloads 10 -autoupdate -steamdir ../.. -srvdir mytf2server \\
  -sharedscreens bob,sam \
  -notifycmd ./notifyadmins.sh -updatefirst \\
  \\
  -game tf -updatedaemon
Note that you can do this with just one server as well, just update the sharedscreens command to the screen name of the server.

Side note: I don't think the -cleandownloads command currently works, I should probably look into that.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-02-2014 at 09:47. Reason: thread, not topic
Powerlord 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 23:53.


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