blob: e2b6b2782c32db6fd4decedb91e8f09ded8fbe93 [file] [log] [blame]
Brandon Wyman9f37d312017-08-15 16:41:08 -05001[Unit]
2Description=Witherspoon Power Supply %I Monitor
3Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%i.service
4After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%i.service
5Wants=mapper-wait@-org-openbmc-control-power0.service
6After=mapper-wait@-org-openbmc-control-power0.service
7ConditionPathExists={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf
8
9[Service]
10EnvironmentFile={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf
11ExecStart=/usr/bin/env witherspoon-psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}}
12SysLogIdentifier=witherspoon-psu-monitor
13
14[Install]
15RequiredBy={SYSTEMD_DEFAULT_TARGET}