From 67ae1b1056d9c18af98ba29d8651a4b7d3dc461a Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 19 Apr 2018 13:56:05 +0800 Subject: phosphor-gpio-monitor: Add EXTRA_ARGS in service This is a follow up commit of 1065559c, that is to use ${EXTRA_ARGS} instead of "--continue=", so that this option becomes an optional one without argument. For services need extra arguments, e.g. Romulus' id-button service, specify "--continue" in its config file. Tested: Verify the generated gpio monitor service uses ${EXTRA_ARGS} environment. On Romulus, checkstop monitor starts without extra argument, and id_button monitor starts with --continue argument. Change-Id: I09c5ad7f97f1a40caabfc9ae394e68798396dffe Signed-off-by: Lei YU --- .../gpio/phosphor-gpio-monitor/phosphor-gpio-monitor@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-phosphor') diff --git a/meta-phosphor/common/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-monitor@.service b/meta-phosphor/common/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-monitor@.service index 63f88a1f5..8d0f4cd5b 100644 --- a/meta-phosphor/common/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-monitor@.service +++ b/meta-phosphor/common/recipes-phosphor/gpio/phosphor-gpio-monitor/phosphor-gpio-monitor@.service @@ -4,5 +4,5 @@ Description=Phosphor GPIO %I monitor [Service] Restart=no EnvironmentFile={envfiledir}/obmc/gpio/%I -ExecStart=/usr/bin/env phosphor-gpio-monitor --path=${{DEVPATH}} --key=${{KEY}} --polarity=${{POLARITY}} --target=${{TARGET}} --continue=${{CONTINUE}} +ExecStart=/usr/bin/env phosphor-gpio-monitor --path=${{DEVPATH}} --key=${{KEY}} --polarity=${{POLARITY}} --target=${{TARGET}} ${{EXTRA_ARGS}} SyslogIdentifier=phosphor-gpio-monitor -- cgit v1.2.3