blob: 15341cbfb3f6b906ea7d3e5dd2927a80b234baca [file] [log] [blame]
George Hungd6d41d22020-06-04 19:54:41 +08001[Unit]
2Description=Phosphor GPIO %I Presence
3Wants=mapper-wait@-xyz-openbmc_project-inventory.service
4After=mapper-wait@-xyz-openbmc_project-inventory.service
George Hungfd8041e2020-07-20 21:02:11 +08005ConditionPathExists=/etc/default/obmc/gpio/gpios-%i.conf
George Hung6e80aa22020-10-13 20:10:26 +08006StartLimitBurst=10
George Hungd6d41d22020-06-04 19:54:41 +08007
8[Service]
George Hung6e80aa22020-10-13 20:10:26 +08009Restart=on-failure
George Hungfd8041e2020-07-20 21:02:11 +080010EnvironmentFile=/etc/default/obmc/gpio/gpios-%i.conf
George Hungd6d41d22020-06-04 19:54:41 +080011ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES}
12
13[Install]
14RequiredBy=multi-user.target