run daemons as python3 -u so that stdout is unbuffered
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 9 Apr 2019 16:57:09 +0000 (18:57 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 9 Apr 2019 16:57:09 +0000 (18:57 +0200)
and shows up asap in journalctl

sfa/server/sfa-start.py

index 5c3a2e4..7b2f19d 100755 (executable)
@@ -1,4 +1,7 @@
-#!/usr/bin/env python3
+#!/usr/bin/python3 -u
+# now that logs are managed through stdout and journalctl,
+# it is important to run with -u so that they show up quickly
+# and don't get buffered
 #
 # PlanetLab SFA implementation
 #