| [Unit] |
| Description=Motor Initialize for sled%i |
| StartLimitIntervalSec=90 |
| StartLimitBurst=2 |
| Requires=phosphor-gpio-presence@presence-sled%i.service |
| After=phosphor-gpio-presence@presence-sled%i.service |
| Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service |
| After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service |
| |
| [Service] |
| ExecStart=/usr/libexec/motor-init sled%i |
| SyslogIdentifier=Motor Initialize sled%i |
| Type=oneshot |
| RemainAfterExit=yes |
| ExecStopPost=/usr/libexec/motor-ctrl sled%i s |
| Restart=on-failure |
| RestartSec=1 |
| |
| [Install] |
| WantedBy=multi-user.target |