freebsd-skq/share/man/man8
Kyle Evans ac102a2a63 rc.subr: Provide rc_service variable for service scripts
Some rc scripts in ports (e.g. uwsgi, apache, openvpn) allow for
'application profiles' that usually require the rc script to be invoked
again for each active profile. Because there's no consistent way to
determine the path because it differs between manual/service(8) invocations
and /etc/rc invocations, this leads to patterns like these:

- www/uwsgi hardcodes the script path
- security/openvpn guesses either $_file or $0 based on $0 = /etc/rc

Instead of forcing rc scripts to guess, provide an rc_service variable to
the scripts that gets set appropriately both for direct execution or when a
script is being executed via run_rc_script (e.g. /etc/rc).

This is our analog of an OpenRC variable with the same name, different case
(RC_SERVICE).

PR:		234614
Reported by:	koobs
Reviewed by:	dteske, jilles
MFC after:	3 days
2019-01-05 21:23:25 +00:00
..
beinstall.8 Create a manual page for beinstall.sh. 2018-08-20 11:05:36 +00:00
crash.8 Update several more URLs 2017-10-29 08:17:03 +00:00
diskless.8 Correct directions for building pxeboot. One needs to cd to src/stand, 2018-09-10 15:16:33 +00:00
intro.8
Makefile Create a manual page for beinstall.sh. 2018-08-20 11:05:36 +00:00
Makefile.depend
nanobsd.8 Last few instances of "sentence not on new line". 2016-06-08 09:36:07 +00:00
picobsd.8 It's 2015, and some people are still trying to use fdisk and then 2015-09-02 14:08:43 +00:00
rc.8 Remove legacy rc.d infrastructure references from rc(8) 2018-12-29 20:02:20 +00:00
rc.sendmail.8
rc.subr.8 rc.subr: Provide rc_service variable for service scripts 2019-01-05 21:23:25 +00:00
rescue.8
uefi.8 Rework UEFI ESP generation 2018-12-20 19:39:37 +00:00
yp.8