Ticket #11: startstop.patch

File startstop.patch, 1014 bytes (added by behemoth, 9 years ago)
  • start.sh

     
    3232                rm -f $(getInstancePath $1)/logs/output_log.txt
    3333               
    3434                for H in $(getHooksFor serverPreStart); do
    35                         $H $INSTANCE
     35                        $H $1
    3636                done
    3737
    3838                SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
     
    4444                sleep 1
    4545
    4646                for H in $(getHooksFor serverPostStart); do
    47                         $H $INSTANCE
     47                        $H $1
    4848                done
    4949
    5050                if [ $(isRunning $1) -eq 1 ]; then
  • stop.sh

     
    2727        res=$(isRunning $1)
    2828        if [ $res -eq 1 ]; then
    2929                for H in $(getHooksFor serverPreStop); do
    30                         $H $INSTANCE
     30                        $H $1
    3131                done
    3232
    3333                echo "Trying to gracefully shutdown..."
     
    5353                rm $(getInstancePath $1)/7dtd.pid
    5454
    5555                for H in $(getHooksFor serverPostStop); do
    56                         $H $INSTANCE
     56                        $H $1
    5757                done
    5858
    5959                echo "Done"