Changeset 219 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- Dec 19, 2014, 6:51:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r207 r219 36 36 done 37 37 38 LOG=$(getInstancePath $1)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_output_log.txt 38 39 SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile" 39 40 SSD_DAEMON="--background --no-close" 40 41 SSD_USER="--chuid $SDTD_USER:$SDTD_GROUP --user $SDTD_USER" 41 OPTS="-logfile $ (getInstancePath $1)/logs/output_log.txt-configfile=$(getInstancePath $1)/config.xml"42 OPTS="-logfile $LOG -configfile=$(getInstancePath $1)/config.xml" 42 43 43 44 LC_ALL=C LD_LIBRARY_PATH=$SDTD_BASE/engine $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $SDTD_BASE/engine/7DaysToDie.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1 … … 51 52 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile" 52 53 SSD_MONITOR_DAEMON="--background" 53 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" 54 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" "$LOG" 54 55 echo "Done!" 55 56 else
Note:
See TracChangeset
for help on using the changeset viewer.