blob: 8f794d75e5dd48880f7a3307d561992fff379e27 [file] [log] [blame]
Lei YUbd3bd822019-10-10 15:28:10 +08001[Unit]
2Description=Power Supply %I Monitor
3Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
4After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-motherboard-powersupply%i.service
5Wants=mapper-wait@-org-openbmc-control-power0.service
6After=mapper-wait@-org-openbmc-control-power0.service
Andrew Geissler00ff9102019-11-04 08:02:57 -06007ConditionPathExists=/etc/default/obmc/power-supply-monitor/power-supply-monitor-%i.conf
Lei YUbd3bd822019-10-10 15:28:10 +08008
9[Service]
Andrew Geissler00ff9102019-11-04 08:02:57 -060010EnvironmentFile=/etc/default/obmc/power-supply-monitor/power-supply-monitor-%i.conf
11ExecStart=/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 YUbd3bd822019-10-10 15:28:10 +080012SyslogIdentifier=psu-monitor
13
14[Install]
15RequiredBy=multi-user.target