Ignore:
Timestamp:
Jul 4, 2015, 3:37:27 PM (9 years ago)
Author:
alloc
Message:

Scripts 91

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/start.sh

    r219 r240  
    3636                done
    3737
    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
    3940                SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
    4041                SSD_DAEMON="--background --no-close"
     
    4243                OPTS="-logfile $LOG -configfile=$(getInstancePath $1)/config.xml"
    4344               
    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
     45                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
    4546                sleep 1
    4647
     
    5253                        SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
    5354                        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"
    5556                        echo "Done!"
    5657                else
Note: See TracChangeset for help on using the changeset viewer.