rc.d/watchdogd: a suggestion

Andriy Gapon avg at FreeBSD.org
Sun Nov 27 20:17:25 UTC 2011


on 27/11/2011 22:06 Doug Barton said the following:
> On 11/27/2011 5:13 AM, Andriy Gapon wrote:
>>
>> I have a suggestion to start watchdogd a little bit earlier than it is done now,
>> and correspondingly to stop it a little bit later during shutdown:
> 
> I have no particular opinion on changing the timing, but you haven't
> said why you want to do it.

So that it covers a larger period of system operation.
My (one time) use case for it was to prevent a situation where an exiting X
server hanged the whole machine.  It happened so that watchdogd was stopped
before X server got killed.

>> @@ -28,7 +28,8 @@
>>  #
>>
>>  # PROVIDE: watchdogd
>> -# REQUIRE: DAEMON cleanvar
>> +# REQUIRE: FILESYSTEMS syslogd cleanvar
>> +# BEFORE:  SERVERS
> 
> Ideally base scripts should not use BEFORE. Change REQUIRE in SERVERS
> instead.

You mean so that SERVERS requires watchdogd?

-- 
Andriy Gapon


More information about the freebsd-rc mailing list