Changeset 66 for scripts


Ignore:
Timestamp:
Jul 9, 2014, 3:40:18 PM (10 years ago)
Author:
alloc
Message:

v24: Kill monitor on start of an instance if it is still running from previous session

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

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r64 r66  
    1 Version: 23
    2 Release: 2014-07-07
     1Version: 24
     2Release: 2014-07-08
  • scripts/usr/local/lib/7dtd/commands/start.sh

    r39 r66  
    2020
    2121        if [ $(isRunning $1) -eq 0 ]; then
     22                # Kill monitor if it is still running
     23                if [ -f "$(getInstancePath $1)/monitor.pid" ]; then
     24                        $PKILL -TERM -P $(cat $(getInstancePath $1)/monitor.pid)
     25                        rm $(getInstancePath $1)/monitor.pid
     26                fi
     27               
    2228                setAllPlayersOffline $1
    2329                rm -f $(getInstancePath $1)/output_log.txt
Note: See TracChangeset for help on using the changeset viewer.