Ticket #11: startstop.patch
File startstop.patch, 1014 bytes (added by , 10 years ago) |
---|
-
start.sh
32 32 rm -f $(getInstancePath $1)/logs/output_log.txt 33 33 34 34 for H in $(getHooksFor serverPreStart); do 35 $H $ INSTANCE35 $H $1 36 36 done 37 37 38 38 SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile" … … 44 44 sleep 1 45 45 46 46 for H in $(getHooksFor serverPostStart); do 47 $H $ INSTANCE47 $H $1 48 48 done 49 49 50 50 if [ $(isRunning $1) -eq 1 ]; then -
stop.sh
27 27 res=$(isRunning $1) 28 28 if [ $res -eq 1 ]; then 29 29 for H in $(getHooksFor serverPreStop); do 30 $H $ INSTANCE30 $H $1 31 31 done 32 32 33 33 echo "Trying to gracefully shutdown..." … … 53 53 rm $(getInstancePath $1)/7dtd.pid 54 54 55 55 for H in $(getHooksFor serverPostStop); do 56 $H $ INSTANCE56 $H $1 57 57 done 58 58 59 59 echo "Done"