Changeset 18 for scripts/usr
- Timestamp:
- May 21, 2014, 7:16:53 PM (11 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r17 r18 29 29 30 30 setAllPlayersOffline $1 31 rm $SDTD_BASE/engine/7DaysToDie_Data/output_log.txt 31 32 32 33 SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile" … … 40 41 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile" 41 42 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" 43 44 echo "Done!" 44 45 else -
scripts/usr/local/lib/7dtd/commands/stop.sh
r17 r18 45 45 fi 46 46 47 start-stop-daemon --stop --pidfile $(getInstancePath $1)/monitor.pid47 $PKILL -TERM -P $(cat $(getInstancePath $1)/monitor.pid) 48 48 rm $(getInstancePath $1)/monitor.pid 49 49 setAllPlayersOffline $1 -
scripts/usr/local/lib/7dtd/monitor-log.sh
r17 r18 47 47 echo >> $LOG 48 48 49 sleep 5 50 49 51 NOBUF="stdbuf -e0 -o0" 50 52
Note:
See TracChangeset
for help on using the changeset viewer.