Initial commit
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
Requires=bletchley-system-state-init@%i.service
|
||||
After=bletchley-system-state-init@%i.service
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" == "0" ]; then
|
||||
echo "Enter chassis-cycle"
|
||||
/usr/sbin/power-ctrl chassis-cycle
|
||||
else
|
||||
echo "Enter sled$1 cycle"
|
||||
/usr/sbin/power-ctrl "sled$1" cycle
|
||||
fi
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Chassis Power Cycle: %i
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/libexec/phosphor-state-manager/chassis-powercycle %i
|
||||
|
||||
[Install]
|
||||
WantedBy=obmc-chassis-powercycle@%i.target
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Turn off AC at Sled%i
|
||||
Conflicts=chassis-poweron@%i.service
|
||||
After=host-poweroff@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i ac-off
|
||||
SyslogIdentifier=power-ctrl
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Turn on AC at Sled%i
|
||||
Requires=motor-init-calibration@%i.service
|
||||
After=motor-init-calibration@%i.service
|
||||
Conflicts=chassis-poweroff@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i ac-on
|
||||
SyslogIdentifier=power-ctrl
|
||||
ExecStartPost=/bin/systemctl restart phosphor-discover-system-state@%i.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Sled%i Host Power Cycle
|
||||
Requires=motor-init-calibration@%i.service
|
||||
After=motor-init-calibration@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i cycle
|
||||
SyslogIdentifier=power-ctrl
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Power off System in Sled%i by Step Motor
|
||||
Requires=motor-init-calibration@%i.service
|
||||
After=motor-init-calibration@%i.service
|
||||
Conflicts=host-poweron@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i off
|
||||
SyslogIdentifier=power-ctrl
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Power on System in Sled%i by Step Motor
|
||||
Requires=motor-init-calibration@%i.service
|
||||
After=motor-init-calibration@%i.service
|
||||
Requires=chassis-poweron@%i.service
|
||||
After=chassis-poweron@%i.service
|
||||
Conflicts=host-poweroff@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i boot-from-bootmode
|
||||
SyslogIdentifier=power-ctrl
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Sled%i Host Power Reset
|
||||
Requires=motor-init-calibration@%i.service
|
||||
After=motor-init-calibration@%i.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/power-ctrl sled%i reset
|
||||
SyslogIdentifier=power-ctrl
|
||||
Reference in New Issue
Block a user