Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contrib/systemd/labgrid-coordinator: improve service
Adding `PYTHONUNBUFFERED=1` [1] to the environment forces the stdout and stderr streams to be unbuffered, so all logs end up in the journal instantly. Add a hint where to get a config template from. Soften the restart criteria by using `on-failure` instead of `on-abort`, which covers more failure scenarios, see [2]. [1] https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUNBUFFERED [2] https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart= Signed-off-by: Bastian Krause <[email protected]> (cherry picked from commit 1e24d60)
- Loading branch information