blob: a4f17e99b22edecfef97a945dd5c2fe19754b611 [file] [log] [blame]
Brandon Wyman9f37d312017-08-15 16:41:08 -05001[Unit]
2Description=Witherspoon Power Supply %I Monitor
Brandon Wyman8d5dacf2017-11-02 18:50:37 -05003Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-powersupply%i.service
4After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-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}