Allen.Wang | 4a0948d | 2021-12-15 13:41:18 +0800 | [diff] [blame] | 1 | [Unit] |
| 2 | Description=Motor Initialize for sled%i |
Allen.Wang | 78d1c32 | 2022-01-13 20:09:15 +0800 | [diff] [blame] | 3 | StartLimitIntervalSec=90 |
| 4 | StartLimitBurst=5 |
Potin Lai | a8d258f | 2022-06-14 18:35:10 +0800 | [diff] [blame^] | 5 | Requires=phosphor-gpio-presence@presence-sled%i.service |
| 6 | After=phosphor-gpio-presence@presence-sled%i.service |
| 7 | Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service |
| 8 | After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service |
Allen.Wang | 4a0948d | 2021-12-15 13:41:18 +0800 | [diff] [blame] | 9 | |
| 10 | [Service] |
| 11 | ExecStart=/usr/libexec/motor-init sled%i |
| 12 | SyslogIdentifier=Motor Initialize sled%i |
| 13 | Type=oneshot |
| 14 | RemainAfterExit=yes |
Allen.Wang | 78d1c32 | 2022-01-13 20:09:15 +0800 | [diff] [blame] | 15 | ExecStopPost=/usr/libexec/motor-ctrl sled%i s |
| 16 | Restart=on-failure |
| 17 | RestartSec=1 |
Allen.Wang | 4a0948d | 2021-12-15 13:41:18 +0800 | [diff] [blame] | 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |