AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   Nemrun for SteamCMD Linux (https://forums.alliedmods.net/showthread.php?t=218555)

Powerlord 06-17-2013 16:06

Nemrun for SteamCMD Linux
 
2 Attachment(s)
So, a few people have been bugging me to release my updated version of Nemrun for SteamCMD... so here it is.

This is based on Nemrun 1.8.7.

The new (required) parameters are actually the same ones the server uses with its newer -autoupdate support:
-steam_dir - The directory steamcmd lives in. Replaces -steamdir which was for hldsupdatetool.
-steamcmd_script - The steamcmd script to run. Relative paths are treated as relative from the steam_dir.

Note: This includes srcdsupdatecheck from Nemrun 1.8.7.

Edit: I wonder if the reason Nephyrin didn't update this for SteamCMD himself is because he now works for Valve.

Smarmy 06-17-2013 16:35

Re: Nemrun for SteamCMD Linux
 
Thanks. :bacon!:

moxie2020 07-03-2013 19:08

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by Powerlord (Post 1972196)
So, a few people have been bugging me to release my updated version of Nemrun for SteamCMD... so here it is.

This is based on Nemrun 1.8.7.

The new (required) parameters are actually the same ones the server uses with its newer -autoupdate support:
-steam_dir - The directory steamcmd lives in. Replaces -steamdir which was for hldsupdatetool.
-steamcmd_runscript - The steamcmd script to run. Relative paths are treated as relative from the steam_dir.

Note: This includes srcdsupdatecheck from Nemrun 1.8.7.

Thank you again. Totally rocks.

Dr. McKay 07-11-2013 19:25

Re: Nemrun for SteamCMD Linux
 
Does anyone have any clue why SteamCMD won't update steam.inf on my servers? (That's plural, it's happening on all three systems). steam.inf won't update with the new version number so nemrun never restarts the servers to update.

Powerlord 07-11-2013 19:28

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by Dr. McKay (Post 1988957)
Does anyone have any clue why SteamCMD won't update steam.inf on my servers? (That's plural, it's happening on all three systems). steam.inf won't update with the new version number so nemrun never restarts the servers to update.

No idea. It appears to be working on my Prop Hunt server, although I've noticed that the -cleandownloads option doesn't seem to work any more... I should probably fix that.

Dr. McKay 08-19-2013 19:53

Re: Nemrun for SteamCMD Linux
 
I just realized that I never gave my solution...

SteamCMD wasn't updating my steam.inf file so nemrun never thought the server was fully updated. To fix it, I had to switch my user-relative path (~/tfserver) to an absolute path (/home/user/tfserver).

Powerlord 11-01-2013 10:24

Re: Nemrun for SteamCMD Linux
 
Two things:

I just noticed the first post had the command listed as -steamcmd_runscript. It's actually -steamcmd_script.

I also want to post the command lines I use with nemrun_steamcmd to give people an idea of how it works, at least if you use it in its update daemon mode.

For TF2, my update daemon is running like this:

Code:

#!/bin/bash
# Source Dedicated Server Init Script for Nemrun

# Server options
NAME='updater'                          # Server handle for the screen session
STEAM='/home/tf2/tf2'            # Path to STEAM installation
USER='tf2'

STEAM_DIR='../steamcmd'
STEAMCMD_SCRIPT='tf2update.txt'
SHARED_SCREENS='tf2'
cd $STEAM

screen -d -m -U -S $NAME ./nemrun-steamcmd \
-nemlog "runlogs/updater_%Y%m%d%H%M%S.log" \
-cleandownloads 10 -autoupdate -steam_dir $STEAM_DIR \
-steamcmd_script $STEAMCMD_SCRIPT -sharedscreens $SHARED_SCREENS -updatefirst \
\
-game tf -updatedaemon

My game server is running like this:

Code:

#!/bin/bash
# Source Dedicated Server Init Script for Nemrun

# Server options
NAME='tf2'                              # Server handle for the screen session
DAEMON='srcds_run'                      # The server daemon
STEAM='/path/to/server'            # Path to STEAM installation
USER='tf2'

# Game options
IP='1.2.3.4'                            # IP of the server
PORT='27015'                            # Port number to use
MAP='plr_hightower_event'                # Initial map to start
MAPCYCLE='mapcycle_halloween.txt'
GAME='tf'                              # Game type (tf|cstrike|valve|hl2mp)
SIZE='24'                              # Maximum number of players
CONFIGFILE='server-halloween.cfg'        # Config file to use in cfg directory
SOURCEMOD='addons/sourcemod-halloween'
MOTDFILE='motd-halloween'

cd $STEAM

# Server options string
OPTS="-game $GAME +map $MAP -ip $IP -port $PORT \
    +maxplayers $SIZE +sv_pure 1 +mapcyclefile $MAPCYCLE \
    +servercfgfile $CONFIGFILE -strictportbind +sm_basepath $SOURCEMOD \
    +motdfile ${MOTDFILE}.txt +motdfile_text ${MOTDFILE}_text.txt \
    -replay"

screen -d -m -U -S $NAME ./nemrun-steamcmd \
-nemlog "runlogs/tf2_%Y%m%d%H%M%S.log" \
-corefile "cores/tf2_%Y%m%d%H%M%S.core" \
\
$OPTS

Note that cleandownloads is actually broken at the moment... I need to take the time to fix it at some point.

Blackglade 11-12-2013 19:57

Re: Nemrun for SteamCMD Linux
 
Is this still supported (meaning does it work) and err does it have all the features that the original Nemrun with running multiple servers off 1 installation and auto updating...?

eric0279 07-09-2014 22:09

Re: Nemrun for SteamCMD Linux
 
Hi,

where is emailTheAdmins.sh and notifyadmins.sh?

Powerlord 07-10-2014 09:52

Re: Nemrun for SteamCMD Linux
 
Quote:

Originally Posted by Blackglade (Post 2060161)
Is this still supported (meaning does it work) and err does it have all the features that the original Nemrun with running multiple servers off 1 installation and auto updating...?

Not sure how I never replied to this, but this should still be operational and I still use it on my Linux TF2 server.

Quote:

Originally Posted by eric0279 (Post 2164894)
Hi,

where is emailTheAdmins.sh and notifyadmins.sh?

Those have never actually been shipped with NemRun... you actually have to write them yourself.

There are reasons for this...
1. notifyadmins.sh doesn't specify how to contact the admins.
2. emailTheAdmins.sh would need to be written differently depending on how your server is set up... if it has a sendmail binary (installed by most mail servers) it could use that, but otherwise it'd have to talk SMTP directly with a remote mail server.

Also, just because it has a .sh extension doesn't strictly mean it's a shell script... it could be written in perl or python and passed the perl/python interpreter on the first line (the shebang line).


All times are GMT -4. The time now is 15:42.

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