Changeset 17 for scripts/etc


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

Version 4

Location:
scripts/etc
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • scripts/etc/7dtd.conf

    r10 r17  
    11#!/bin/sh
    2 # Version 1
     2# Version 4
    33
    44# Root directory where steamcmd should be placed
     
    77export STEAM_PASS=
    88
    9 # Root directory of the engine
    10 export SDTD_ROOT=/home/sdtd/7dtd
    11 
    12 # Root of the 7dtd folders, containing e.g. the "instances" folder
     9# Root of the 7dtd folders, containing e.g. the "engine", "instances" folders
    1310export SDTD_BASE=/home/sdtd
    1411
     
    2118
    2219# Paths to binaries. Use "which BINARYNAME" to find the path of a single binary
    23 export CP=/bin/cp
    2420export RSYNC=/usr/bin/rsync
    25 export DU=/usr/bin/du
    26 export FREE=/usr/bin/free
    27 export AWK=/usr/bin/awk
    28 export PIDOF=/bin/pidof
    2921export WINE=/usr/bin/wine
     22export XMLSTARLET=/usr/bin/xmlstarlet
  • 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.