Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Witherspoon Power Supply %I Monitor |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-power_supply%i.service |
| 5 | Wants=mapper-wait@-org-openbmc-control-power0.service |
| 6 | After=mapper-wait@-org-openbmc-control-power0.service |
| 7 | ConditionPathExists={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf |
| 8 | |
| 9 | [Service] |
| 10 | EnvironmentFile={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf |
| 11 | ExecStart=/usr/bin/env witherspoon-psu-monitor --path=${{DEVPATH}} --instance=${{INSTANCE}} --inventory=${{INVENTORY}} |
Brandon Wyman | 97ecf3e | 2017-10-09 13:25:17 -0500 | [diff] [blame] | 12 | SyslogIdentifier=witherspoon-psu-monitor |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 13 | |
| 14 | [Install] |
| 15 | RequiredBy={SYSTEMD_DEFAULT_TARGET} |