blob: bf027582d7ab5ba31d209334f1b7710738d2fbaf [file] [log] [blame]
Brandon Wyman9f37d312017-08-15 16:41:08 -05001[Unit]
Brandon Wymanfe3a4642019-03-13 13:27:13 -05002Description=Power Supply %I Monitor
Matt Spinlerf8952bb2018-02-09 15:04:46 -06003Wants=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
Brandon Wyman9f37d312017-08-15 16:41:08 -05005Wants=mapper-wait@-org-openbmc-control-power0.service
6After=mapper-wait@-org-openbmc-control-power0.service
7ConditionPathExists={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf
8
9[Service]
10EnvironmentFile={envfiledir}/obmc/power-supply-monitor/power-supply-monitor-%i.conf
Brandon Wymanfe3a4642019-03-13 13:27:13 -050011ExecStart=/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}}
12SyslogIdentifier=psu-monitor
Brandon Wyman9f37d312017-08-15 16:41:08 -050013
14[Install]
Patrick Venture85cff8c2019-04-04 13:06:43 -070015RequiredBy=multi-user.target