Changeset 20 for scripts/usr/local/lib/7dtd/commands
- Timestamp:
- May 23, 2014, 6:47:10 PM (11 years ago)
- Location:
- scripts/usr/local/lib/7dtd/commands
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/commands/backup.sh
r17 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.sh
r19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 -
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" -
scripts/usr/local/lib/7dtd/commands/status.sh
r19 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.sh
r18 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.sh
r19 r20 1 1 #!/bin/bash 2 # Version 42 # Version 5 3 3 4 4 # Tries to start the 7dtd instance.
Note:
See TracChangeset
for help on using the changeset viewer.