Ignore:
Timestamp:
May 15, 2014, 8:49:17 PM (11 years ago)
Author:
alloc
Message:

Fix for instances/kill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/bin/7dtd-kill.sh

    r10 r11  
    1616res=$(isRunning $1)
    1717if [ $res -eq 1 ]; then
    18         telnetCommand shutdown
    19         start-stop-daemon --stop --pidfile $(getInstancePath $1)/7dtd.pid
     18        telnetCommand $1 shutdown
     19        sleep 1
     20        res=$(isRunning $1)
     21        if [ $res -eq 1 ]; then
     22                start-stop-daemon --stop --pidfile $(getInstancePath $1)/7dtd.pid
     23        fi
    2024        rm $(getInstancePath $1)/7dtd.pid
    2125        echo "Done"     
Note: See TracChangeset for help on using the changeset viewer.