Changeset 18


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

Version 4

Location:
scripts
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • scripts/etc/7dtd.conf

    r17 r18  
    2121export WINE=/usr/bin/wine
    2222export XMLSTARLET=/usr/bin/xmlstarlet
     23export PKILL=/usr/bin/pkill
     24
  • scripts/etc/bash_completion.d/7dtd

    r17 r18  
    11. /usr/local/lib/7dtd/common.sh
     2checkRootLoadConf
    23
    34_sdtd() {
  • 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
  • scripts/usr/local/lib/7dtd/monitor-log.sh

    r17 r18  
    4747echo >> $LOG
    4848
     49sleep 5
     50
    4951NOBUF="stdbuf -e0 -o0"
    5052
Note: See TracChangeset for help on using the changeset viewer.