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.
__________________