Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2021 21:51:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 121440] rc(8) and rcorder(8) unclear about PROVIDE keyword being mandatory
Message-ID:  <bug-121440-9-wUttZKPKVF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-121440-9@https.bugs.freebsd.org/bugzilla/>
References:  <bug-121440-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D121440

Paul Scott <pscott@skycoast.us> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pscott@skycoast.us

--- Comment #6 from Paul Scott <pscott@skycoast.us> ---
I experienced this issue when I added a new service.

My service would start and stop manually, but would not start during boot
process. I lost hours of my day figuring out why.

rcorder(8) states: "A file may contain zero `PROVIDE' lines, in which case =
it
provides no conditions."

rc(8) states: "Each script should contain rcorder(8) keywords, especially an
appropriate "PROVIDE" entry, and if necessary "REQUIRE" and "BEFORE" keywor=
ds.=E2=80=9D

To my mind, rcorder(8)'s wording implies PROVIDE is optional, while rc(8)'s
wording only suggests the importance of PROVIDE but does not discuss the
ramifications of leaving it off as rcorder(8) clearly states may be done.

The solution here is to unambiguously state in rcorder(8) that the rc system
(boot time) will steadfastly refuse to start a service that has no PROVIDE
entry, even while a manual start will work.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-121440-9-wUttZKPKVF>