Changeset 240 for scripts


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

Scripts 91

Location:
scripts/usr/local/lib/7dtd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r239 r240  
    1 Version: 89
    2 Release: 2015-07-03
    3 DediBuild: ???
     1Version: 91
     2Release: 2015-07-04
     3DediBuild: 682942
    44
  • 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
  • scripts/usr/local/lib/7dtd/monitor-log.sh

    r234 r240  
    1010
    1111INSTANCE=$1
    12 LOG=$2
    13 #LOG=$(getInstancePath $INSTANCE)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_output_log.txt
    14 CHATLOG=$(getInstancePath $INSTANCE)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_chat.log
    15 COMMANDLOG=$(getInstancePath $INSTANCE)/logs/$(date '+%Y-%m-%d_%H-%M-%S')_commandExecution.log
     12LOGTIMESTAMP=$2
     13LOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_output_log.txt
     14CHATLOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_chat.log
     15COMMANDLOG=$(getInstancePath $INSTANCE)/logs/${LOGTIMESTAMP}_commandExecution.log
    1616
    1717timestamp() {
Note: See TracChangeset for help on using the changeset viewer.