Initial commit
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
[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
|
||||
Reference in New Issue
Block a user