blob: 3ab99702f051dd7f1608601341d1266dcda1e96b [file] [log] [blame]
George Hung09b8cd92020-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
5ConditionPathExists=/etc/default/obmc/gpio/slimsas-cable-%i.conf
6StartLimitBurst=10
7
8[Service]
9Restart=on-failure
10EnvironmentFile=/etc/default/obmc/gpio/slimsas-cable-%i.conf
11ExecStart=/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