blob: 0e8f9d021f10c9e8ad3a54168ea90e5d32f9c56a [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}}
Brandon Wyman97ecf3e2017-10-09 13:25:17 -050012SyslogIdentifier=witherspoon-psu-monitor
Brandon Wyman9f37d312017-08-15 16:41:08 -050013
14[Install]
15RequiredBy={SYSTEMD_DEFAULT_TARGET}