summaryrefslogtreecommitdiff
path: root/meta-phosphor/common/recipes-phosphor/state/files/phosphor-reboot-host@.service
blob: f8f017105686c07e39dfc7cc0992edfec673fb04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Reboot host%i
Wants=obmc-host-stop@%i.target
After=obmc-host-stop@%i.target

[Service]
#ExecStart={base_bindir}/systemctl start obmc-host-start@%i.target
# This service is starting another target that conflicts with the
# target this service is running in. OpenBMC needs a refactor of
# how it does its host reset path. Until then, this short term
# solution does the job.
ExecStart=/bin/sh -c "sleep 5 && systemctl start obmc-host-start@%i.target"


[Install]
WantedBy=obmc-host-reboot@%i.target