Changeset 240 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- Jul 4, 2015, 3:37:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r219 r240 36 36 done 37 37 38 LOG=$(getInstancePath $1)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_output_log.txt 38 LOGTIMESTAMP=$(date '+%Y-%m-%d_%H-%M-%S') 39 LOG=$(getInstancePath $1)/logs/${LOGTIMESTAMP}_output_log.txt 39 40 SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile" 40 41 SSD_DAEMON="--background --no-close" … … 42 43 OPTS="-logfile $LOG -configfile=$(getInstancePath $1)/config.xml" 43 44 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>&145 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/7DaysToDieServer.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1 45 46 sleep 1 46 47 … … 52 53 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile" 53 54 SSD_MONITOR_DAEMON="--background" 54 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" "$LOG "55 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" "$LOGTIMESTAMP" 55 56 echo "Done!" 56 57 else
Note:
See TracChangeset
for help on using the changeset viewer.