xref: /openbmc/phosphor-gpio-monitor/phosphor-gpio-presence@.service (revision 58dc277a9df27cc79565b20f48d42c95a877d3c2)
1[Unit]
2Description=Phosphor GPIO %I Presence
3Wants=mapper-wait@-xyz-openbmc_project-inventory.service
4After=mapper-wait@-xyz-openbmc_project-inventory.service
5Requires=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
9ConditionPathExists=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
10
11[Service]
12EnvironmentFile=/etc/default/obmc/gpio/phosphor-power-supply-%i.conf
13ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES}
14
15[Install]
16RequiredBy=multi-user.target
17