blob: f8f017105686c07e39dfc7cc0992edfec673fb04 [file] [log] [blame]
Andrew Geisslercd2b9462017-07-26 17:53:04 -05001[Unit]
2Description=Reboot host%i
3Wants=obmc-host-stop@%i.target
4After=obmc-host-stop@%i.target
5
6[Service]
Matthew Barth1851aa62018-01-10 09:16:28 -06007#ExecStart={base_bindir}/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.
12ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-start@%i.target"
Andrew Geisslercd2b9462017-07-26 17:53:04 -050013
14
15[Install]
16WantedBy=obmc-host-reboot@%i.target