Ignore:
Timestamp:
Mar 17, 2016, 6:16:40 PM (9 years ago)
Author:
alloc
Message:

v96

Location:
scripts/usr/local/lib/7dtd/commands
Files:
2 edited

Legend:

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

    r258 r259  
    4747                rm -f $(getInstancePath $1)/logs/output_log.txt
    4848               
    49                 for H in $(getHooksFor serverPreStart); do
     49                for H in $(getHooksFor serverPreStart $1); do
    5050                        $H $1
    5151                done
     
    5858                OPTS="-logfile $LOG -configfile=$(getInstancePath $1)/config.xml"
    5959               
    60                 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
     60#               if [ "$(uname -m)" = "x86_64" ]; then
     61#                       SERVER_EXE="7DaysToDieServer.x86_64"
     62#               else
     63                        SERVER_EXE="7DaysToDieServer.x86"
     64#               fi
     65
     66               
     67                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/$SERVER_EXE -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1
    6168                sleep 1
    6269
    63                 for H in $(getHooksFor serverPostStart); do
     70                for H in $(getHooksFor serverPostStart $1); do
    6471                        $H $1
    6572                done
  • scripts/usr/local/lib/7dtd/commands/stop.sh

    r258 r259  
    4242        res=$(isRunning $1)
    4343        if [ $res -eq 1 ]; then
    44                 for H in $(getHooksFor serverPreStop); do
     44                for H in $(getHooksFor serverPreStop $1); do
    4545                        $H $1
    4646                done
     
    6868                rm $(getInstancePath $1)/7dtd.pid
    6969
    70                 for H in $(getHooksFor serverPostStop); do
     70                for H in $(getHooksFor serverPostStop $1); do
    7171                        $H $1
    7272                done
Note: See TracChangeset for help on using the changeset viewer.