George Hung | d6d41d2 | 2020-06-04 19:54:41 +0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Phosphor GPIO %I Presence |
| 3 | Wants=mapper-wait@-xyz-openbmc_project-inventory.service |
| 4 | After=mapper-wait@-xyz-openbmc_project-inventory.service |
George Hung | fd8041e | 2020-07-20 21:02:11 +0800 | [diff] [blame] | 5 | ConditionPathExists=/etc/default/obmc/gpio/gpios-%i.conf |
George Hung | 6e80aa2 | 2020-10-13 20:10:26 +0800 | [diff] [blame] | 6 | StartLimitBurst=10 |
George Hung | d6d41d2 | 2020-06-04 19:54:41 +0800 | [diff] [blame] | 7 | |
| 8 | [Service] |
George Hung | 6e80aa2 | 2020-10-13 20:10:26 +0800 | [diff] [blame] | 9 | Restart=on-failure |
George Hung | fd8041e | 2020-07-20 21:02:11 +0800 | [diff] [blame] | 10 | EnvironmentFile=/etc/default/obmc/gpio/gpios-%i.conf |
George Hung | d6d41d2 | 2020-06-04 19:54:41 +0800 | [diff] [blame] | 11 | ExecStart=/usr/bin/phosphor-gpio-presence --path=${DEVPATH} --inventory=${INVENTORY} --key=${KEY} --name=${NAME} --drivers=${DRIVERS} --extra-ifaces=${EXTRA_IFACES} |
| 12 | |
| 13 | [Install] |
| 14 | RequiredBy=multi-user.target |