Changeset 16 for scripts/usr/local/bin
- Timestamp:
- May 17, 2014, 6:14:22 PM (11 years ago)
- Location:
- scripts/usr/local/bin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/bin/7dtd-common.sh
r14 r16 91 91 # PID otherwise 92 92 getInstancePID() { 93 run=$(isRunning $1) 94 if [ $run -eq 1 ]; then 93 if [ $(isRunning $1) -eq 1 ]; then 95 94 cat $(getInstancePath $1)/7dtd.pid 96 95 else -
scripts/usr/local/bin/7dtd-instances.sh
r14 r16 14 14 echo ${line// /-} 15 15 for I in $(getInstanceList); do 16 run=$(isRunning $I) 17 if [ $run -eq 1 ]; then 16 if [ $(isRunning $I) -eq 1 ]; then 18 17 run="yes" 19 18 tel=$(telnetCommand $I lp) … … 44 43 echo 45 44 46 res=$(isRunning $1) 47 if [ $res -eq 1 ]; then 45 if [ $(isRunning $1) -eq 1 ]; then 48 46 echo "Status: Running" 49 47 echo "Open ports:" -
scripts/usr/local/bin/7dtd-running.sh
r14 r16 14 14 checkInstanceValid $1 15 15 16 res=$(isRunning $1) 17 if [ $res -eq 1 ]; then 16 if [ $(isRunning $1) -eq 1 ]; then 18 17 echo "7dtd instance $1 is running" 19 18 echo "Open ports:" -
scripts/usr/local/bin/7dtd-start.sh
r14 r16 15 15 checkInstanceValid $1 16 16 17 res=$(isRunning $1) 18 if [ $res -eq 0 ]; then 17 if [ $(isRunning $1) -eq 0 ]; then 19 18 if [ ! `pgrep Xvfb` ]; then 20 19 echo "Xvfb not yet running. Starting..." … … 31 30 start-stop-daemon --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_ROOT --exec $WINE -- $SDTD_ROOT/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&1 32 31 sleep 1 33 res=$(isRunning $1) 34 if [ $res -eq 1 ]; then 32 if [ $(isRunning $1) -eq 1 ]; then 35 33 echo "Done!" 36 34 exit 0 -
scripts/usr/local/bin/7dtd-update.sh
r14 r16 5 5 checkRootLoadConf 6 6 7 for I in $SDTD_BASE/instances/*; do 8 ins=`basename $I` 9 run=$(isRunning $ins) 10 if [ $run -eq 1 ]; then 7 for I in $(getInstanceList); do 8 if [ $(isRunning $I) -eq 1 ]; then 11 9 echo "At least one instance is still running." 12 10 echo "Before updating the engine please stop all instances!"
Note:
See TracChangeset
for help on using the changeset viewer.