Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 1 | [Unit] |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 2 | Description=Power Supply %I Monitor |
Matt Spinler | f8952bb | 2018-02-09 15:04:46 -0600 | [diff] [blame] | 3 | Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 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 |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 11 | 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}} |
| 12 | SyslogIdentifier=psu-monitor |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 13 | |
| 14 | [Install] |
Patrick Venture | 85cff8c | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 15 | RequiredBy=multi-user.target |