mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
Removes the check for the existence of the sysctl variable
debug.watchdog since it is not created by hardware watchdog(4) devices. The watchdog(4) device is always compiled in the kernel, so removing the check should not cause any problems. Approved by: phk
This commit is contained in:
parent
609caf8db9
commit
f59f70e231
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128663
@ -36,16 +36,7 @@
|
||||
name="watchdogd"
|
||||
rcvar="`set_rcvar`"
|
||||
command="/usr/sbin/${name}"
|
||||
start_precmd="watchdogd_precmd"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
watchdogd_precmd()
|
||||
{
|
||||
if ! sysctl debug.watchdog >/dev/null 2>&1; then
|
||||
err 1 "Your kernel doesn't have watchdog support."
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user