Subject: misc/21251: rcorder and rc scripts without "special lines"
To: None <>
From: None <>
List: netbsd-bugs
Date: 04/21/2003 08:21:55
>Number:         21251
>Category:       misc
>Synopsis:       rcorder and rc scripts without "special lines"
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 21 15:22:00 UTC 2003
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (JCR-20020927) #3: Sat Sep 28 13:40:20 PDT 2002 i386
Architecture: i386
Machine: i386
I ran rcorder on a rc.d directory with various scripts that
didn't have any of these special lines. It still listed the scripts (so I
guess it attempted to order them).

The rcorder(8) man page says: "Each file passed to rcorder must be
annotated with special lines". Notice that it says "must".

And the documentation says that each file must contain REQUIRE, PROVIDE,
BEFORE, and KEYWORD lines. I think "must" should be replaced with "should"
or "could".

The man page also says it may contain zero PROVIDE lines and zero REQUIRE
lines. I think that it should not say "and". Is it okay if a file doesn't
contain both PROVIDE and REQUIRE?
Run rcorder on a directory with files that do not provide the special
Fix the manual page so that it says the file should contain (instead
of must).

Fix the manual page so it says the file may contain  zero PROVIDE lines
*or* zero REQUIRE lines. Or fix it so this is understandable.

And fix the rcorder tool so it doesn't output names of files
that do not contain the special lines.

Sorry I do not provide a fix. I asked about this on tech-userlevel
a few weeks ago but no response. I don't want to provide a fix
since I don't know what the expected behavior or correct
documentation for these items should be.