Initial commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Fan Watchdog Failure Monitor
|
||||
|
||||
#This can get called every time a process dies, so ensure it's never limited
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/phosphor-unit-failure-monitor --source %i --target obmc-fan-watchdog-takeover.target --action start
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Fan Watchdog Daemon
|
||||
Wants=phosphor-fan-monitor-init@0.service
|
||||
Before=phosphor-fan-monitor-init@0.service
|
||||
Conflicts=obmc-fan-watchdog-takeover.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile={envfiledir}/obmc/fan-watchdog/fan-watchdog.conf
|
||||
ExecStartPre=/bin/sh -c "echo V > ${{DEVICE}}"
|
||||
ExecStart=/sbin/watchdog -T ${{TIMEOUT}} -t ${{INTERVAL}} -F ${{DEVICE}}
|
||||
KillSignal=SIGKILL
|
||||
|
||||
[Install]
|
||||
#RequiredBy=obmc-chassis-poweron@0.target
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMEOUT=5
|
||||
INTERVAL=1
|
||||
DEVICE=/dev/watchdog0
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
GPIO_PATH=/dev/gpiochip0
|
||||
GPIO=114
|
||||
DELAY=1
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Fan Watchdog Reset
|
||||
Wants=phosphor-fan-monitor-init@0.service
|
||||
Before=phosphor-fan-monitor-init@0.service
|
||||
Conflicts=obmc-chassis-poweroff@0.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
EnvironmentFile={envfiledir}/obmc/fan-watchdog/reset-fan-watchdog.conf
|
||||
ExecStart=/usr/bin/gpioset --mode=time -u ${{DELAY}} ${{GPIO_PATH}} ${{GPIO}}=0
|
||||
ExecStart=/usr/bin/gpioset --mode=time -u ${{DELAY}} ${{GPIO_PATH}} ${{GPIO}}=1
|
||||
@@ -0,0 +1,3 @@
|
||||
TIMEOUT=5
|
||||
INTERVAL=1
|
||||
DEVICE=/dev/watchdog0
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
GPIO_PATH=/dev/gpiochip0
|
||||
GPIO=109
|
||||
DELAY=1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
TIMEOUT=5
|
||||
INTERVAL=1
|
||||
DEVICE=/dev/watchdog0
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
GPIO_PATH=/dev/gpiochip0
|
||||
GPIO=114
|
||||
DELAY=1
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
TIMEOUT=5
|
||||
INTERVAL=1
|
||||
DEVICE=/dev/watchdog0
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
GPIO_PATH=/dev/gpiochip0
|
||||
GPIO=109
|
||||
DELAY=1
|
||||
Reference in New Issue
Block a user