- Timestamp:
- May 23, 2014, 6:47:10 PM (11 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
- 
      - 11 edited
 
 - 
          
  commands/backup.sh (modified) (1 diff)
- 
          
  commands/instances.sh (modified) (1 diff)
- 
          
  commands/start.sh (modified) (3 diffs)
- 
          
  commands/status.sh (modified) (1 diff)
- 
          
  commands/stop.sh (modified) (3 diffs)
- 
          
  commands/updateengine.sh (modified) (1 diff)
- 
          
  common.sh (modified) (1 diff)
- 
          
  help.sh (modified) (1 diff)
- 
          
  monitor-log.sh (modified) (1 diff)
- 
          
  playerlog.sh (modified) (1 diff)
- 
          
  serverconfig.sh (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      scripts/usr/local/lib/7dtd/commands/backup.shr17 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Backups game data files. 
- 
      scripts/usr/local/lib/7dtd/commands/instances.shr19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 
- 
      scripts/usr/local/lib/7dtd/commands/start.shr18 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" 
- 
      scripts/usr/local/lib/7dtd/commands/status.shr19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Print status of given instance. 
- 
      scripts/usr/local/lib/7dtd/commands/stop.shr18 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Tries to stop the 7dtd instance given as first parameter. … … 28 28 res=$(isRunning $1) 29 29 if [ $res -eq 1 ]; then 30 for H in $(getHooksFor serverPreStop); do 31 $H $INSTANCE 32 done 33 30 34 echo "Trying to gracefully shutdown..." 31 35 tmp=$(telnetCommand $1 shutdown) … … 50 54 51 55 rm $(getInstancePath $1)/7dtd.pid 56 57 for H in $(getHooksFor serverPostStop); do 58 $H $INSTANCE 59 done 60 52 61 echo "Done" 53 62 else 
- 
      scripts/usr/local/lib/7dtd/commands/updateengine.shr19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Tries to start the 7dtd instance. 
- 
      scripts/usr/local/lib/7dtd/common.shr19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Provides common functions for 7dtd-scripts. Not intended to be run directly. 
- 
      scripts/usr/local/lib/7dtd/help.shr17 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 genericHelp() { 
- 
      scripts/usr/local/lib/7dtd/monitor-log.shr18 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 . /usr/local/lib/7dtd/common.sh 
- 
      scripts/usr/local/lib/7dtd/playerlog.shr17 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 timestamp() { 
- 
      scripts/usr/local/lib/7dtd/serverconfig.shr19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Provides functions to query and validate values for serverconfig.xml 
  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)
