blob: f32bf22b8d3032882088d10ca2711bc74a104874 [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
5
6[Service]
7#ExecStart=/bin/systemctl start obmc-host-start@%i.target
8# This service is starting another target that conflicts with the
9# target this service is running in. OpenBMC needs a refactor of
10# how it does its host reset path. Until then, this short term
11# solution does the job.
12# Since this is a part of the reboot target, call the startmin
13# target which does the minimum required to start the host.
14ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-startmin@%i.target"
15
16[Install]
17WantedBy=obmc-host-reboot@%i.target