1[Unit]
2Description=Motor Initialize for sled%i
3StartLimitIntervalSec=90
4StartLimitBurst=2
5Requires=phosphor-gpio-presence@presence-sled%i.service
6After=phosphor-gpio-presence@presence-sled%i.service
7Wants=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service
8After=mapper-wait@-xyz-openbmc_project-inventory-system-chassis-presence-presence_sled%i.service
9
10[Service]
11ExecStart=/usr/libexec/motor-init sled%i
12SyslogIdentifier=Motor Initialize sled%i
13Type=oneshot
14RemainAfterExit=yes
15ExecStopPost=/usr/libexec/motor-ctrl sled%i s
16Restart=on-failure
17RestartSec=1
18
19[Install]
20WantedBy=multi-user.target
21