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# This service is running a script that is starting another target that
10# conflicts with the target this service is running in. OpenBMC needs a
11# refactor of how it does its host reset path. Until then, this short term
12# solution does the job.
13# Since this is a part of the reboot target, call the startmin
14# target which does the minimum required to start the host if the reboot count
15# is not 0, otherwise it will quiesce the host.
16ExecStart=/usr/libexec/phosphor-state-manager/host-reboot %i
17
18[Install]
19WantedBy=obmc-host-reboot@%i.target
20