Changeset 259 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- Mar 17, 2016, 6:16:40 PM (9 years ago)
- Location:
- scripts/usr/local/lib/7dtd/commands
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r258 r259 47 47 rm -f $(getInstancePath $1)/logs/output_log.txt 48 48 49 for H in $(getHooksFor serverPreStart ); do49 for H in $(getHooksFor serverPreStart $1); do 50 50 $H $1 51 51 done … … 58 58 OPTS="-logfile $LOG -configfile=$(getInstancePath $1)/config.xml" 59 59 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 61 68 sleep 1 62 69 63 for H in $(getHooksFor serverPostStart ); do70 for H in $(getHooksFor serverPostStart $1); do 64 71 $H $1 65 72 done -
scripts/usr/local/lib/7dtd/commands/stop.sh
r258 r259 42 42 res=$(isRunning $1) 43 43 if [ $res -eq 1 ]; then 44 for H in $(getHooksFor serverPreStop ); do44 for H in $(getHooksFor serverPreStop $1); do 45 45 $H $1 46 46 done … … 68 68 rm $(getInstancePath $1)/7dtd.pid 69 69 70 for H in $(getHooksFor serverPostStop ); do70 for H in $(getHooksFor serverPostStop $1); do 71 71 $H $1 72 72 done
Note:
See TracChangeset
for help on using the changeset viewer.