diff options
Diffstat (limited to 'meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/power-supply-monitor@.service')
-rw-r--r-- | meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/power-supply-monitor@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/power-supply-monitor@.service b/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/power-supply-monitor@.service new file mode 100644 index 000000000..bf027582d --- /dev/null +++ b/meta-ibm/meta-witherspoon/recipes-phosphor/power/witherspoon-pfault-analysis/power-supply-monitor@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Power Supply %I Monitor +Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service +After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service +Wants=mapper-wait@-org-openbmc-control-power0.service +After=mapper-wait@-org-openbmc-control-power0.service +ConditionPathExists={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf + +[Service] +EnvironmentFile={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf +ExecStart=/usr/bin/env psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}} --num-history-records=${{NUM_HISTORY_RECORDS}} --sync-gpio-path=${{SYNC_GPIO_PATH}} --sync-gpio-num=${{SYNC_GPIO_NUM}} +SyslogIdentifier=psu-monitor + +[Install] +RequiredBy=multi-user.target |