Matt Spinler | a62a655 | 2017-06-13 15:57:04 -0500 | [diff] [blame] | 1 | [Unit] |
Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 2 | Description=Fan Watchdog Daemon |
Matthew Barth | 1f00505 | 2019-09-20 09:56:35 -0500 | [diff] [blame] | 3 | Wants=phosphor-fan-monitor-init@0.service |
| 4 | Before=phosphor-fan-monitor-init@0.service |
Matt Spinler | a62a655 | 2017-06-13 15:57:04 -0500 | [diff] [blame] | 5 | Conflicts=obmc-fan-watchdog-takeover.target |
| 6 | |
| 7 | [Service] |
Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 8 | EnvironmentFile={envfiledir}/obmc/fan-watchdog/fan-watchdog.conf |
Matt Spinler | 71f04aa | 2022-01-14 21:51:02 +0000 | [diff] [blame] | 9 | ExecStartPre=/bin/sh -c "echo V > ${{DEVICE}}" |
Matt Spinler | a62a655 | 2017-06-13 15:57:04 -0500 | [diff] [blame] | 10 | ExecStart=/sbin/watchdog -T ${{TIMEOUT}} -t ${{INTERVAL}} -F ${{DEVICE}} |
| 11 | KillSignal=SIGKILL |
| 12 | |
| 13 | [Install] |
Matt Spinler | 3868183 | 2017-10-06 14:17:15 -0500 | [diff] [blame] | 14 | RequiredBy=obmc-chassis-poweron@0.target |