Ignore:
Timestamp:
May 23, 2014, 6:47:10 PM (10 years ago)
Author:
alloc
Message:

Version 5. Fixes #9, #11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/commands/start.sh

    r18 r20  
    11#!/bin/bash
    2 # Version 4
     2# Version 5
    33
    44# Tries to start the 7dtd instance.
     
    3131                rm $SDTD_BASE/engine/7DaysToDie_Data/output_log.txt
    3232               
     33                for H in $(getHooksFor serverPreStart); do
     34                        $H $INSTANCE
     35                done
     36
    3337                SSD_PID="--pidfile $(getInstancePath $1)/7dtd.pid --make-pidfile"
    3438                SSD_DAEMON="--background --no-close"
     
    3842                start-stop-daemon --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $WINE -- $SDTD_BASE/engine/7DaysToDie.exe $OPTS > $(getInstancePath $1)/stdout.log 2>&1
    3943                sleep 1
     44
     45                for H in $(getHooksFor serverPostStart); do
     46                        $H $INSTANCE
     47                done
     48
    4049                if [ $(isRunning $1) -eq 1 ]; then
    4150                        SSD_MONITOR_PID="--pidfile $(getInstancePath $1)/monitor.pid --make-pidfile"
Note: See TracChangeset for help on using the changeset viewer.