blob: d6a64e4f066ba8478d7ba5b29375c02cf7ca2fda [file] [log] [blame]
Brad Bishop26373ab2019-09-19 17:18:57 -04001[Unit]
2Description=Phosphor GPIO %I Presence
3Wants=mapper-wait@-xyz-openbmc_project-inventory.service
4After=mapper-wait@-xyz-openbmc_project-inventory.service
Alvin Wang58dc2772019-11-06 13:35:13 +08005Requires=dev-platform_gpio_keys.device
6After=dev-platform_gpio_keys.device
7Requires=dev-platform_gpio_keys_polled.device
8After=dev-platform_gpio_keys_polled.device
Brad Bishop26373ab2019-09-19 17:18:57 -04009ConditionPathExists=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
10
11[Service]
Brad Bishopa1ac1802019-10-30 09:01:10 -040012EnvironmentFile=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
Brad Bishop166ef2d2019-11-01 09:50:36 -040013ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES}
Brad Bishop26373ab2019-09-19 17:18:57 -040014
15[Install]
16RequiredBy=multi-user.target