Lei YU | bd3bd82 | 2019-10-10 15:28:10 +0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Power Supply %I Monitor |
| 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 |
| 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 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 |
| 13 | |
| 14 | [Install] |
| 15 | RequiredBy=multi-user.target |