- Timestamp:
- May 27, 2014, 10:32:48 AM (11 years ago)
- Location:
- scripts
- Files:
- 
      - 5 edited
 
 - 
          
  etc/7dtd.conf (modified) (1 diff)
- 
          
  usr/local/lib/7dtd/VERSION (modified) (1 diff)
- 
          
  usr/local/lib/7dtd/commands/start.sh (modified) (2 diffs)
- 
          
  usr/local/lib/7dtd/commands/stop.sh (modified) (1 diff)
- 
          
  usr/local/lib/7dtd/common.sh (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      scripts/etc/7dtd.confr23 r25 21 21 export XMLSTARLET=/usr/bin/xmlstarlet 22 22 export PKILL=/usr/bin/pkill 23 export SSD=/sbin/start-stop-daemon 23 24 
- 
      scripts/usr/local/lib/7dtd/VERSIONr24 r25 1 Current version: 72 Last edit: 2014-05-2 61 Current version: 8 2 Last edit: 2014-05-27 
- 
      scripts/usr/local/lib/7dtd/commands/start.shr23 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.shr23 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 
- 
      scripts/usr/local/lib/7dtd/common.shr23 r25 61 61 # 1 = running 62 62 isRunning() { 63 start-stop-daemon--status --pidfile $(getInstancePath $1)/7dtd.pid63 $SSD --status --pidfile $(getInstancePath $1)/7dtd.pid 64 64 if [ $? -eq 0 ]; then 65 65 echo 1 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
