blob: 27479f2defec2a81bb1beeb1606b7c3a0fe35caf [file] [log] [blame]
Andrew Geissler4ec27742017-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 Barth253a5aa2018-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.
Andrew Geissler5c76e0c2018-03-27 13:56:26 -070012# Since this is a part of the reboot target, call the startmin
13# target which does the minimum required to start the host.
Lei YU6be4a2c2018-08-01 14:02:26 +080014ExecStart=/bin/sh -c "sleep ${{REBOOT_DELAY}} && systemctl start obmc-host-startmin@%i.target"
15EnvironmentFile={envfiledir}/obmc/phosphor-reboot-host/reboot.conf
Andrew Geissler4ec27742017-07-26 17:53:04 -050016
17[Install]
18WantedBy=obmc-host-reboot@%i.target