1[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
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
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}}
12SyslogIdentifier=psu-monitor
13
14[Install]
15RequiredBy=multi-user.target
16