blob: a5cf9a1527935a2e0be8abd7fa5d4e9cdf5add74 [file] [log] [blame]
Andrew Geisslerc2123532020-01-14 10:39:47 -06001[Unit]
2Description=Reboot host%i
3Wants=obmc-host-stop@%i.target
4After=obmc-host-stop@%i.target
Andrew Geissler79aa01a2020-01-14 15:05:09 -06005Wants=obmc-host-stopped@%i.target
6After=obmc-host-stopped@%i.target
Andrew Geisslerc2123532020-01-14 10:39:47 -06007
8[Service]
Andrew Geissler128ea8e2022-06-22 12:28:15 -04009# 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
Andrew Geisslerc2123532020-01-14 10:39:47 -060012# solution does the job.
13# Since this is a part of the reboot target, call the startmin
Andrew Geissler128ea8e2022-06-22 12:28:15 -040014# 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/host-reboot %i
Andrew Geisslerc2123532020-01-14 10:39:47 -060017
18[Install]
19WantedBy=obmc-host-reboot@%i.target