1[Unit]
2Description=Reboot host%i
3Wants=obmc-host-stop@%i.target
4After=obmc-host-stop@%i.target
5Wants=obmc-host-stopped@%i.target
6After=obmc-host-stopped@%i.target
7
8[Service]
9#ExecStart=/bin/systemctl start obmc-host-start@%i.target
10# This service is starting another target that conflicts with the
11# target this service is running in. OpenBMC needs a refactor of
12# how it does its host reset path. Until then, this short term
13# solution does the job.
14# Since this is a part of the reboot target, call the startmin
15# target which does the minimum required to start the host.
16ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-startmin@%i.target"
17
18[Install]
19WantedBy=obmc-host-reboot@%i.target
20