diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-29 01:21:00 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-29 17:19:14 +0300 |
commit | 801ddbd7947fdd651cceeecf1c2a2e7deb4a0c08 (patch) | |
tree | ecca0aab54fb4f1784a17df8bd5205d3ff472434 /meta-phosphor/common | |
parent | 766c38ae67c185ec4ac8d3d0f6473c18fa84003c (diff) | |
download | openbmc-801ddbd7947fdd651cceeecf1c2a2e7deb4a0c08.tar.xz |
Set PYTHONUNBUFFERED for systemd managed python
This lets python scripts print to the journal.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/common')
8 files changed, 8 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/dbus/obmc-mapper/obmc-mapper.service b/meta-phosphor/common/recipes-phosphor/dbus/obmc-mapper/obmc-mapper.service index 05d1e8040..ff863ea0d 100644 --- a/meta-phosphor/common/recipes-phosphor/dbus/obmc-mapper/obmc-mapper.service +++ b/meta-phosphor/common/recipes-phosphor/dbus/obmc-mapper/obmc-mapper.service @@ -7,6 +7,7 @@ Type=dbus ExecStart=/usr/sbin/phosphor-mapper BusName=org.openbmc.ObjectMapper TimeoutStartSec=300 +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service b/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service index a78c86bb9..8612b9899 100644 --- a/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service +++ b/meta-phosphor/common/recipes-phosphor/dbus/obmc-rest/obmc-rest.service @@ -6,6 +6,7 @@ After=obmc-mapper.service [Service] Restart=always ExecStart=/usr/sbin/obmc-rest +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/network/network/network.service b/meta-phosphor/common/recipes-phosphor/network/network/network.service index 6d0aad7f0..70df7c541 100644 --- a/meta-phosphor/common/recipes-phosphor/network/network/network.service +++ b/meta-phosphor/common/recipes-phosphor/network/network/network.service @@ -3,6 +3,7 @@ Description=Network DBUS object [Service] ExecStart=/usr/sbin/netman.py +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-pydbus/files/obmc-phosphor-example-pydbus.service b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-pydbus/files/obmc-phosphor-example-pydbus.service index fbc50d328..27d9bfe12 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-pydbus/files/obmc-phosphor-example-pydbus.service +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-example-pydbus/files/obmc-phosphor-example-pydbus.service @@ -4,6 +4,7 @@ Description=Phosphor OpenBMC QEMU application example [Service] Restart=always ExecStart=/usr/sbin/obmc-phosphor-example-pydbus +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-user/files/obmc-phosphor-user.service b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-user/files/obmc-phosphor-user.service index fecf8352f..fc436c1a2 100644 --- a/meta-phosphor/common/recipes-phosphor/obmc-phosphor-user/files/obmc-phosphor-user.service +++ b/meta-phosphor/common/recipes-phosphor/obmc-phosphor-user/files/obmc-phosphor-user.service @@ -3,6 +3,7 @@ Description=Phosphor OpenBMC user management daemon [Service] ExecStart=/usr/sbin/obmc-phosphor-userd +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/rest-dbus/files/rest-dbus.service b/meta-phosphor/common/recipes-phosphor/rest-dbus/files/rest-dbus.service index 5ad582f4b..d3bddab9a 100644 --- a/meta-phosphor/common/recipes-phosphor/rest-dbus/files/rest-dbus.service +++ b/meta-phosphor/common/recipes-phosphor/rest-dbus/files/rest-dbus.service @@ -4,3 +4,4 @@ Description=DBUS introspecting REST server. [Service] Restart=always ExecStart=/usr/sbin/rest-dbus +Environment="PYTHONUNBUFFERED=1" diff --git a/meta-phosphor/common/recipes-phosphor/settings/settings/settings.service b/meta-phosphor/common/recipes-phosphor/settings/settings/settings.service index deed98f59..816ebea55 100755 --- a/meta-phosphor/common/recipes-phosphor/settings/settings/settings.service +++ b/meta-phosphor/common/recipes-phosphor/settings/settings/settings.service @@ -3,6 +3,7 @@ Description=Settings DBUS Object [Service] ExecStart=/usr/sbin/settings_manager.py +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target diff --git a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service index 35b6e6c56..c39cc40d8 100644 --- a/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service +++ b/meta-phosphor/common/recipes-phosphor/skeleton/skeleton/skeleton.service @@ -4,6 +4,7 @@ Description=Temp placeholder for skeleton function [Service] Restart=always ExecStart=/usr/sbin/system_manager.py +Environment="PYTHONUNBUFFERED=1" [Install] WantedBy=multi-user.target |