Bug 106873

Summary: [patch] rc.d/nfslocking does not properly restart
Product: Base System Reporter: Oliver Lehmann <oliver>
Component: confAssignee: freebsd-rc (Nobody) <rc>
Status: Closed FIXED    
Severity: Affects Only Me CC: oliver
Priority: Normal    
Version: 6.1-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Oliver Lehmann freebsd_committer 2006-12-18 17:00:29 UTC
	/etc/rc.d/nfslocking restart
	will only restart rpc.statd. This is because after restarting rpc.statd
	_rc_restart_done got set to true by rc.subr.

Fix: To solve this, just unset _rc_restart_done before restarting rpc.lockd
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-12-19 17:13:09 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc
Comment 2 Mike Makonnen freebsd_committer 2007-05-17 12:00:40 UTC
Unfortunately, _rc_restart_done is private to rc.subr(8) and scripts
should not depend on it being available or having any specific
behavior. The solution is to breakup the script into separate scripts
for statd and lockd.

Cheers.
-- 
Mike Makonnen         | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc
mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm @ FreeBSD.Org     | FreeBSD - http://www.freebsd.org
Comment 3 Mike Makonnen freebsd_committer 2007-05-17 12:11:48 UTC
State Changed
From-To: open->closed

Duplicate of conf/107316