So I was investigating an openrc bug and I came across RC_LIBEXECDIR. Unfortunately, it doesn't appear to be documented along with the other RC_* vars listed in the runscript (8) manpage. So I decided I'd grep for RC_* in /etc/init.d/* and compare what came up against the list in the manpage. Here's the undocumented var results (against openrc-9999 updated about a day ago I believe): RC_LIBEXECDIR RC_TTY_NUMBER RC_GOINGDOWN RC_NO_UMOUNTS (comment in mount-ro but nothing in the manpage) RC_SERVICE RC_PARALLEL RC_DOWN_INTERFACE RC_DOWN_DARDDISK RC_COLDPLUG RC_SOFTLEVEL (There's also RC_GOT_FUNCTIONS but it appears that's just a source-gating variable to functions.sh so it can probably remain undocumented.) Please add these to the runscript (8) manpage.
(In reply to Duncan from comment #0) > RC_LIBEXECDIR > RC_GOINGDOWN > RC_SERVICE I agree that these should be documented, and I will add them to the runscript man page. > RC_NO_UMOUNTS (comment in mount-ro but nothing in the manpage) I agree that this should be documented, but probably not on the runscript man page. This should be covered when we document OpenRC plugins, which haven't been documented yet. > RC_PARALLEL > RC_TTY_NUMBER These are covered in /etc/rc.conf, and RC_TTY_NUMBER does not even appear on non-Linux systems. > RC_DOWN_INTERFACE > RC_DOWN_DARDDISK > RC_COLDPLUG > RC_SOFTLEVEL These are not part of the OpenRC code base. If they are not documented in the /etc/conf.d/* files associated with the scripts they were found in, this might be an issue.
(In reply to William Hubbs from comment #1) > (In reply to Duncan from comment #0) > > RC_LIBEXECDIR > > RC_GOINGDOWN > > RC_SERVICE > > RC_NO_UMOUNTS I will document all of these in the manpage.
This is added in commit e5a94dd and will be part of OpenRC-0.13.