Ignore:
Timestamp:
Dec 19, 2014, 6:51:16 PM (10 years ago)
Author:
alloc
Message:

scripts 71

File:
1 edited

Legend:

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

    r207 r219  
    3636                done
    3737
     38                LOG=$(getInstancePath $1)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_output_log.txt
    3839                SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
    3940                SSD_DAEMON="--background --no-close"
    4041                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"
    4243               
    4344                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
     
    5152                        SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
    5253                        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"
    5455                        echo "Done!"
    5556                else
Note: See TracChangeset for help on using the changeset viewer.