Ignore:
Timestamp:
May 21, 2014, 7:16:53 PM (11 years ago)
Author:
alloc
Message:

Version 4

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

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/start.sh

    r17 r18  
    2929               
    3030                setAllPlayersOffline $1
     31                rm $SDTD_BASE/engine/7DaysToDie_Data/output_log.txt
    3132               
    3233                SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
     
    4041                        SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
    4142                        SSD_MONITOR_DAEMON="--background"
    42                         start-stop-daemon --start $SSD_PID $SSD_DAEMON --exec "/usr/local/lib/monitor-log.sh" -- "$1"
     43                        start-stop-daemon --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1"
    4344                        echo "Done!"
    4445                else
  • scripts/usr/local/lib/7dtd/commands/stop.sh

    r17 r18  
    4545                fi
    4646
    47                 start-stop-daemon --stop --pidfile $(getInstancePath $1)/monitor.pid
     47                $PKILL -TERM -P $(cat $(getInstancePath $1)/monitor.pid)
    4848                rm $(getInstancePath $1)/monitor.pid
    4949                setAllPlayersOffline $1
Note: See TracChangeset for help on using the changeset viewer.