Commit ec5402a
committed
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 <bst@pengutronix.de>
(cherry picked from commit 1e24d60)1 parent f957d20 commit ec5402a
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | | - | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
0 commit comments