Changeset 13 for scripts/usr/local/bin/7dtd-common.sh
- Timestamp:
- May 16, 2014, 2:13:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/bin/7dtd-common.sh
r10 r13 1 1 #!/bin/bash 2 # Version 12 # Version 2 3 3 4 4 # Provides common functions for 7dtd-scripts. Not intended to be run directly. … … 52 52 } 53 53 54 # Get the PID of the instance if it is running, 0 otherwise 55 # Params: 56 # 1: Instance name 57 # Returns: 58 # 0 if not running 59 # PID otherwise 60 getInstancePID() { 61 run=$(isRunning $1) 62 if [ $run -eq 1 ]; then 63 cat $(getInstancePath $1)/7dtd.pid 64 else 65 echo 0 66 fi 67 } 68 54 69 # Get a single value from a serverconfig 55 70 # Params:
Note:
See TracChangeset
for help on using the changeset viewer.