Initial commit
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
POLL_INTERVAL="3000"
|
||||
PGOOD_TIMEOUT="10"
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Phosphor Power%i Control
|
||||
|
||||
[Service]
|
||||
EnvironmentFile={envfiledir}/obmc/power_control
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/env power_control.exe $POLL_INTERVAL $PGOOD_TIMEOUT
|
||||
SyslogIdentifier=power_control.exe
|
||||
Type=dbus
|
||||
BusName={BUSNAME}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Wait for Power%i to turn off
|
||||
Before=obmc-power-off@%i.target
|
||||
Wants=obmc-power-stop@%i.target
|
||||
Before=obmc-power-stop@%i.target
|
||||
Wants=obmc-power-stop-pre@%i.target
|
||||
After=obmc-power-stop-pre@%i.target
|
||||
Wants=mapper-wait@-org-openbmc-control-power%i.service
|
||||
After=mapper-wait@-org-openbmc-control-power%i.service
|
||||
Conflicts=obmc-chassis-poweron@%i.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i off
|
||||
SyslogIdentifier=pgood_wait
|
||||
ExecStart=/bin/rm -f /run/openbmc/host@%i-request
|
||||
ExecStart=/bin/rm -f /run/openbmc/mpreboot@%i
|
||||
|
||||
[Install]
|
||||
# Installation of templated services occur in bitbake recipes
|
||||
# Leave it commented out here for documentation purposes
|
||||
#WantedBy=obmc-host-stop@%i.target
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Wait for Power%i to turn on
|
||||
Wants=obmc-power-start-pre@%i.target
|
||||
After=obmc-power-start-pre@%i.target
|
||||
Wants=obmc-power-start@%i.target
|
||||
Before=obmc-power-start@%i.target
|
||||
Wants=mapper-wait@-org-openbmc-control-power%i.service
|
||||
After=mapper-wait@-org-openbmc-control-power%i.service
|
||||
After=obmc-power-start@%i.service
|
||||
Conflicts=obmc-chassis-poweroff@%i.target
|
||||
ConditionPathExists=!/run/openbmc/chassis@%i-on
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/bin/env pgood_wait /org/openbmc/control/power%i on
|
||||
SyslogIdentifier=pgood_wait
|
||||
TimeoutSec=30
|
||||
|
||||
[Install]
|
||||
# Installation of templated services occur in bitbake recipes
|
||||
# Leave it commented out here for documentation purposes
|
||||
#WantedBy=obmc-host-start@%i.target
|
||||
Reference in New Issue
Block a user