Changeset 240 for scripts/usr/local/lib/7dtd
- Timestamp:
- Jul 4, 2015, 3:37:27 PM (9 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/VERSION
r239 r240 1 Version: 892 Release: 2015-07-0 33 DediBuild: ???1 Version: 91 2 Release: 2015-07-04 3 DediBuild: 682942 4 4 -
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 -
scripts/usr/local/lib/7dtd/monitor-log.sh
r234 r240 10 10 11 11 INSTANCE=$1 12 LOG =$213 #LOG=$(getInstancePath $INSTANCE)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_output_log.txt14 CHATLOG=$(getInstancePath $INSTANCE)/logs/$ (date '+%Y-%m-%d_%H-%M-%S')_chat.log15 COMMANDLOG=$(getInstancePath $INSTANCE)/logs/$ (date '+%Y-%m-%d_%H-%M-%S')_commandExecution.log12 LOGTIMESTAMP=$2 13 LOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_output_log.txt 14 CHATLOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_chat.log 15 COMMANDLOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_commandExecution.log 16 16 17 17 timestamp() {
Note:
See TracChangeset
for help on using the changeset viewer.