xref: /openbmc/phosphor-power/services/power-supply-monitor@.service (revision 00ff910025f8b4613c345da7fd17e0e965c88adc)
1bd3bd824SLei YU[Unit]
2bd3bd824SLei YUDescription=Power Supply %I Monitor
3bd3bd824SLei YUWants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
4bd3bd824SLei YUAfter=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
5bd3bd824SLei YUWants=mapper-wait@-org-openbmc-control-power0.service
6bd3bd824SLei YUAfter=mapper-wait@-org-openbmc-control-power0.service
7*00ff9100SAndrew GeisslerConditionPathExists=/etc/default/obmc/power-supply-monitor/power-supply-monitor-%i.conf
8bd3bd824SLei YU
9bd3bd824SLei YU[Service]
10*00ff9100SAndrew GeisslerEnvironmentFile=/etc/default/obmc/power-supply-monitor/power-supply-monitor-%i.conf
11*00ff9100SAndrew GeisslerExecStart=/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}
12bd3bd824SLei YUSyslogIdentifier=psu-monitor
13bd3bd824SLei YU
14bd3bd824SLei YU[Install]
15bd3bd824SLei YURequiredBy=multi-user.target
16