Changeset 25 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- May 27, 2014, 10:32:48 AM (10 years ago)
- Location:
- scripts/usr/local/lib/7dtd/commands
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/start.sh
r23 r25 39 39 OPTS="-quit -batchmode -nographics -configfile=$(getInstancePath $1)/config.xml -dedicated" 40 40 41 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>&141 $SSD --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 42 42 sleep 1 43 43 … … 49 49 SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile" 50 50 SSD_MONITOR_DAEMON="--background" 51 start-stop-daemon--start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1"51 $SSD --start $SSD_MONITOR_PID $SSD_MONITOR_DAEMON --exec "/usr/local/lib/7dtd/monitor-log.sh" -- "$1" 52 52 echo "Done!" 53 53 else -
scripts/usr/local/lib/7dtd/commands/stop.sh
r23 r25 45 45 if [ $(isRunning $1) -eq 1 ]; then 46 46 echo "Failed, force closing server..." 47 start-stop-daemon--stop --pidfile $(getInstancePath $1)/7dtd.pid47 $SSD --stop --pidfile $(getInstancePath $1)/7dtd.pid 48 48 fi 49 49
Note:
See TracChangeset
for help on using the changeset viewer.