Changeset 15


Ignore:
Timestamp:
May 17, 2014, 6:04:43 PM (8 years ago)
Author:
alloc
Message:

Init script updated to current commons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/etc/init.d/7dtd.sh

    r10 r15  
    11#!/bin/sh
    2 # Version 1
     2# Version 3
    33
    44### BEGIN INIT INFO
     
    2020    start)
    2121        echo "Starting all 7dtd instances:"
    22         for I in $SDTD_BASE/instances/*; do
    23             ins=`basename $I`
    24             echo "Starting: $ins"
    25             /usr/local/bin/7dtd-start.sh $ins
     22        for I in $(getInstanceList); do
     23            echo "Starting: $I"
     24            /usr/local/bin/7dtd-start.sh $I
    2625        done
    2726        echo "All done"
     
    2928    stop)
    3029        echo "Stopping all 7dtd instances:"
    31         for I in $SDTD_BASE/instances/*; do
    32             ins=`basename $I`
    33             echo "Stopping: $ins"
    34             /usr/local/bin/7dtd-kill.sh $ins
     30        for I in $(getInstanceList); do
     31            echo "Stopping: $I"
     32            /usr/local/bin/7dtd-kill.sh $I
    3533            echo
    3634            echo
Note: See TracChangeset for help on using the changeset viewer.