Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions scripts/start-autostop
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@
. "$(dirname "$0")/start-utils"

: "${SERVER_PORT:=25565}"
: "${ENABLE_AUTOSTOP:=false}"
: "${AUTOSTOP_TIMEOUT_EST:=3600}"
: "${AUTOSTOP_TIMEOUT_INIT:=1800}"
: "${AUTOSTOP_PERIOD:=10}"
: "${DEBUG_AUTOSTOP:=false}"
export SERVER_PORT
export ENABLE_AUTOSTOP
export AUTOSTOP_TIMEOUT_EST
export AUTOSTOP_TIMEOUT_INIT
export AUTOSTOP_PERIOD
Expand All @@ -25,4 +23,4 @@ checkIfNotZeroElseSetToDefault "AUTOSTOP_PERIOD" 10
isNumericElseSetToDefault "AUTOSTOP_TIMEOUT_EST" 3600
isNumericElseSetToDefault "AUTOSTOP_TIMEOUT_INIT" 1800

/auto/autostop-daemon.sh &
"$(dirname "$0")/auto/autostop-daemon.sh" &
4 changes: 1 addition & 3 deletions scripts/start-configuration
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ fi

if isTrue "${ENABLE_AUTOPAUSE}"; then
"$(dirname "$0")/start-autopause"
fi

if isTrue "${ENABLE_AUTOSTOP}"; then
elif isTrue "${ENABLE_AUTOSTOP}"; then
"$(dirname "$0")/start-autostop"
fi

Expand Down