Ignore:
Timestamp:
May 21, 2014, 6:31:05 PM (10 years ago)
Author:
alloc
Message:

Version 4

File:
1 edited

Legend:

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

    r15 r17  
    11#!/bin/sh
    2 # Version 3
     2# Version 4
    33
    44### BEGIN INIT INFO
     
    1414### END INIT INFO
    1515
    16 . /usr/local/bin/7dtd-common.sh
    17 checkRootLoadConf
    18 
    1916case "$1" in
    2017    start)
    21         echo "Starting all 7dtd instances:"
    22         for I in $(getInstanceList); do
    23             echo "Starting: $I"
    24             /usr/local/bin/7dtd-start.sh $I
    25         done
    26         echo "All done"
     18        /usr/local/bin/7dtd.sh start "!"
    2719    ;;
    2820    stop)
    29         echo "Stopping all 7dtd instances:"
    30         for I in $(getInstanceList); do
    31             echo "Stopping: $I"
    32             /usr/local/bin/7dtd-kill.sh $I
    33             echo
    34             echo
    35         done
    36         echo "All done"
     21        /usr/local/bin/7dtd.sh kill "!"
    3722    ;;
    3823    status)
    39         /usr/local/bin/7dtd-instances.sh
     24        /usr/local/bin/7dtd.sh instances
    4025    ;;
    4126    *)
Note: See TracChangeset for help on using the changeset viewer.