From 0ad3b1df9079064491c8318bece22e63cc71b2f4 Mon Sep 17 00:00:00 2001 From: Michael Tritz Date: Tue, 15 Aug 2017 14:07:23 -0500 Subject: Enable BMC patching from the /usr/local path This commit enables patches from the /usr/local path by replacing absolute paths to /usr/sbin or /usr/bin in every service file with "/usr/bin/env ". Additionally, SyslogIdentifier is added to each file to ensure that journal entries are still distinct. In two cases, service files also had to change due to references to ${{PATH}}, which doesn't work with /usr/bin/env. These references - and the corresponding definitions - were changed to ${{DEVPATH}}. Resolves openbmc/openbmc#2149 Change-Id: I12c5c6e5101eef6820b985a563313836250ff2c7 Signed-off-by: Michael Tritz --- .../recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta-phosphor/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service') diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service index 773e59ecf..2aef8754e 100644 --- a/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service +++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-fan/phosphor-fan-control@.service @@ -4,7 +4,8 @@ Conflicts=obmc-chassis-poweroff@%i.target [Service] Restart=on-failure -ExecStart={sbindir}/phosphor-fan-control --control +ExecStart=/usr/bin/env phosphor-fan-control --control +SyslogIdentifier=phosphor-fan-control [Install] RequiredBy=obmc-fan-control-ready@%i.target -- cgit v1.2.1