blob: ba4e368e42240067eee1031ba5286f7060872106 [file] [log] [blame]
Brandon Wyman9f37d312017-08-15 16:41:08 -05001[Unit]
2Description=Witherspoon 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
Matt Spinlerefacf572018-01-19 10:02:25 -060011ExecStart=/usr/bin/env witherspoon-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}}
Brandon Wyman97ecf3e2017-10-09 13:25:17 -050012SyslogIdentifier=witherspoon-psu-monitor
Brandon Wyman9f37d312017-08-15 16:41:08 -050013
14[Install]
15RequiredBy={SYSTEMD_DEFAULT_TARGET}