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 |
Andrew Geissler | 00ff910 | 2019-11-04 08:02:57 -0600 | [diff] [blame] | 7 | ConditionPathExists=/etc/default/obmc/power-supply-monitor/power-supply-monitor-%i.conf |
Lei YU | bd3bd82 | 2019-10-10 15:28:10 +0800 | [diff] [blame] | 8 | |
| 9 | [Service] |
Andrew Geissler | 00ff910 | 2019-11-04 08:02:57 -0600 | [diff] [blame] | 10 | EnvironmentFile=/etc/default/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} |
Lei YU | bd3bd82 | 2019-10-10 15:28:10 +0800 | [diff] [blame] | 12 | SyslogIdentifier=psu-monitor |
| 13 | |
| 14 | [Install] |
| 15 | RequiredBy=multi-user.target |