Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation TIMEOUT_STARTING #250

Merged
merged 1 commit into from
Jun 22, 2024
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
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,21 @@ Note that the health check itself cannot be entirely disabled as it will ensure

If this variable is not present, the gateway will automatically be detected.


* Set FHEM startup timeout:
Set a Timeout, how long the docker container waits until the FHEM process will finished starting.
If the timeout is over, and FHEM is not started, the container is stopped.
You will see an error like this in the container log, if starting wasn't finished early enough:
`ERROR: Fatal: No message from FHEM since 60 seconds that server has started.`

If you have a slow system and a module which blocks FHEM to be ready adjust this to a higher value.

```shell
-e TIMEOUT_STARTING=60
```

If this variable is not present, the timeout will be 60 seconds.

* Manipulating software in the container using their own environment variables:
For security reasons, only allowed environment variables are passed to the FHEM user environment. To control certain behaviours of Perl, Node.js and Python, those language interpreters come with their own environment variables. Any variable that was set for the container and with a prefix of either PERL, NODE or PYTHON is exported to the FHEM user environment so it is available there during runtime of the fhem.pl main process and subsequently all its child processes.

Expand Down
2 changes: 1 addition & 1 deletion src/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function startFhemProcess() {
fi

if ! waitForTextInFile "$gCurrentTailFile" "Server started" $TIMEOUT_STARTING ; then # Wait for startup message in the logfile
printfErr "Fatal: No message from FHEM that server has started.\n"
printfErr "Fatal: No message from FHEM since $TIMEOUT_STARTING seconds that server has started.\n"
exit 1
fi

Expand Down
Loading