Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Aug 2007 23:07:04 +0800
From:      "Rong-en Fan" <grafan@gmail.com>
To:        "Mike Makonnen" <mtm@freebsd.org>
Cc:        cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org
Subject:   Re: cvs commit: src/etc/rc.d Makefile lockd nfslocking statd
Message-ID:  <6eb82e0708170807n4ef2755n2763670ab1b8d1c4@mail.gmail.com>
In-Reply-To: <200708170758.l7H7wRbV097007@repoman.freebsd.org>
References:  <200708170758.l7H7wRbV097007@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/17/07, Mike Makonnen <mtm@freebsd.org> wrote:
> mtm         2007-08-17 07:58:27 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     etc/rc.d             Makefile lockd nfslocking statd
>   Log:
>   The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked well
>   in most cases, except one. The 'restart' case was not working as expected. Specifically,
>   it would stop both lockd and statd, but it would restart only statd (which appears first
>   in the script). This is because rc.subr(8) contains code to guard against infinite
>   recursion in the 'restart' casae.
>
>   To fix this use the traditional approach of controlling only one server from one script by
>   breaking out rc.d/nfslocking into its contituent parts: rc.d/lockd and rc.d/statd. Keep
>   rc.d/nfslocking around but don't include it in the boot rcorder(8)ing.
>
>   PR:          conf/107316
>   Approved by: re (bmah)
>   MFC after:   2 weeks

Hi,

It seems that you forget to set $name in these two scripts:

Clearing /tmp (X related).
/etc/rc: ERROR: USAGE: load_rc_config name
/etc/rc: ERROR: USAGE: load_rc_config name
Starting local daemons:

Regards,
Rong-En Fan

>
>   Revision  Changes    Path
>   1.82      +2 -2      src/etc/rc.d/Makefile
>   1.16      +2 -27     src/etc/rc.d/lockd
>   1.15      +1 -1      src/etc/rc.d/nfslocking
>   1.16      +2 -27     src/etc/rc.d/statd
> _______________________________________________
> cvs-src@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/cvs-src
> To unsubscribe, send any mail to "cvs-src-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6eb82e0708170807n4ef2755n2763670ab1b8d1c4>