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

More instance validation, switch to XMLStarlet, config.xml instead of serverconfig.xml, admins.xml instead of serveradmin.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/bin/7dtd-start.sh

    r12 r14  
    11#!/bin/bash
    2 # Version 1
     2# Version 3
    33
    44# Tries to start the 7dtd instance given as first parameter.
     
    1313checkRootLoadConf
    1414
    15 checkInstance $1
     15checkInstanceValid $1
    1616
    1717res=$(isRunning $1)
     
    2727        SSD_DAEMON="--background --no-close"
    2828        SSD_USER="--chuid $SDTD_USER:$SDTD_GROUP --user $SDTD_USER"
    29         OPTS="-quit -batchmode -nographics -configfile=$(getInstancePath $1)/serverconfig.xml -dedicated"
     29        OPTS="-quit -batchmode -nographics -configfile=$(getInstancePath $1)/config.xml -dedicated"
    3030       
    3131        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
Note: See TracChangeset for help on using the changeset viewer.