Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2438

Raspberry Pi OS • Re: watchdog on 64 bit bookworm.

$
0
0
After a day of digging I found that there was a conflict in the watchdog.service file that was causing the install and service start to hang.

In the service file (/usr/lib/systemd/system/watchdog.service) I commented out the "After=multi-user.target" line and this fixed the hangup.
[Unit]
Description=watchdog daemon
Conflicts=wd_keepalive.service
;After=multi-user.target
OnFailure=wd_keepalive.service

[Service]
Type=forking
EnvironmentFile=/etc/default/watchdog
ExecStartPre=/bin/sh -c '[ -z "${watchdog_module}" ] || [ "${watchdog_module}" = "none" ] || /sbin/modprobe $watchdog_module'
ExecStart=/bin/sh -c '[ $run_watchdog != 1 ] || exec /usr/sbin/watchdog $watchdog_options'
ExecStopPost=/bin/sh -c '[ $run_wd_keepalive != 1 ] || false'

[Install]
WantedBy=default.target

Disclaimer:
I'm not certain that this is the ultimate fix but my testing found that this was definitely creating a conflict for my system. The watchdog install was able to complete, the service was able to start and stop, and the watchdog functioned correctly after making this change. I just found this solution so I have not yet completed long term testing.

Statistics: Posted by user8472 — Mon Jun 10, 2024 8:08 pm



Viewing all articles
Browse latest Browse all 2438

Trending Articles