blob: 0e8f9d021f10c9e8ad3a54168ea90e5d32f9c56a [file] [log] [blame]
[Unit]
Description=Witherspoon Power Supply %I Monitor
Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%i.service
After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%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 witherspoon-psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}}
SyslogIdentifier=witherspoon-psu-monitor
[Install]
RequiredBy={SYSTEMD_DEFAULT_TARGET}