Changeset 20 for scripts/usr/local/lib/7dtd/commands/start.sh
- Timestamp:
- May 23, 2014, 6:47:10 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r18 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Tries to start the 7dtd instance. … … 31 31 rm $SDTD_BASE/engine/7DaysToDie_Data/output_log.txt 32 32 33 for H in $(getHooksFor serverPreStart); do 34 $H $INSTANCE 35 done 36 33 37 SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile" 34 38 SSD_DAEMON="--background --no-close" … … 38 42 start-stop-daemon --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $WINE -- $SDTD_BASE/engine/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&1 39 43 sleep 1 44 45 for H in $(getHooksFor serverPostStart); do 46 $H $INSTANCE 47 done 48 40 49 if [ $(isRunning $1) -eq 1 ]; then 41 50 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
Note:
See TracChangeset
for help on using the changeset viewer.