blob: d6a64e4f066ba8478d7ba5b29375c02cf7ca2fda [file] [log] [blame]
[Unit]
Description=Phosphor GPIO %I Presence
Wants=mapper-wait@-xyz-openbmc_project-inventory.service
After=mapper-wait@-xyz-openbmc_project-inventory.service
Requires=dev-platform_gpio_keys.device
After=dev-platform_gpio_keys.device
Requires=dev-platform_gpio_keys_polled.device
After=dev-platform_gpio_keys_polled.device
ConditionPathExists=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
[Service]
EnvironmentFile=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES}
[Install]
RequiredBy=multi-user.target