| #
26da9de7 |
| 10-Jan-2021 |
riastradh <riastradh@NetBSD.org> |
rc.subr(8): Fix markup -- use .It to set off a new item.
|
| #
d8b2f12e |
| 18-Dec-2012 |
wiz <wiz@NetBSD.org> |
Bump date for previous and remove trailing whitespace.
|
| #
532fa0d9 |
| 17-Dec-2012 |
apb <apb@NetBSD.org> |
Add shell implementations of basename and dirname to rc.subr. They are supposed to mimic basename(1) and dirname(1), except that they are usable before /usr/bin is mounted.
|
| #
75350585 |
| 11-Aug-2011 |
apb <apb@NetBSD.org> |
Allow "echo -n" to work as expected in rc.d scripts that are executed by /etc/rc. Similarly for printf with a format that does not end with "\n". Previously, the partial line would not be visible o
Allow "echo -n" to work as expected in rc.d scripts that are executed by /etc/rc. Similarly for printf with a format that does not end with "\n". Previously, the partial line would not be visible on the console until a newline was printed, possibly after an annoying delay.
This is done by adding echo() and printf() shell functions to rc.subr, so that naive use of the echo and printf commands in rc.d scripts will call these functions instead of the underlying commands. These shell functions send a new "nop" metadata message after the partial line, and the rc_postprocess function in /etc/rc disentangles the partial line of plain output from the metadata "nop".
Also add a "-n" option to the print_rc_normal function in rc.subr, and make some cosmetic changes.
show more ...
|
| #
71e8773d |
| 26-Sep-2010 |
apb <apb@NetBSD.org> |
Bump date for previous
|
| #
f265a7c0 |
| 26-Sep-2010 |
apb <apb@NetBSD.org> |
Add a collapse_backslash_newline function to rc.subr.
|
| #
f5490001 |
| 15-Mar-2010 |
jmmv <jmmv@NetBSD.org> |
Document that run_rc_command can take extra parameters and will pass those to the command being executed.
|
| #
7222c07e |
| 05-Oct-2009 |
apb <apb@NetBSD.org> |
Typo in macro name (.Is -> .Ic), noticed by joerg@
|
| #
0b645b22 |
| 11-Sep-2009 |
wiz <wiz@NetBSD.org> |
Bump date for previous. Whitespace nit. Use Nm instead of Xr to itself.
|
| #
89fd5357 |
| 11-Sep-2009 |
apb <apb@NetBSD.org> |
Add a postprocessor to /etc/rc, which logs messages to /var/run/rc.log, and which can suppress output in silent mode. Silent mode is enabled via the new rc_silent variable, which defaults to a value
Add a postprocessor to /etc/rc, which logs messages to /var/run/rc.log, and which can suppress output in silent mode. Silent mode is enabled via the new rc_silent variable, which defaults to a value that depends on the kern.boothowto sysctl.
Part of the /etc/rc silent changes requested in PR 41946 and proposed in tech-userlevel.
show more ...
|
| #
e597a0f4 |
| 09-Apr-2009 |
joerg <joerg@NetBSD.org> |
Don't use .Xo/.Xc to workaround argument limit in ancient groff.
|
| #
839eeade |
| 25-May-2008 |
wiz <wiz@NetBSD.org> |
Bump date for previous.
|
| #
0bf72560 |
| 24-May-2008 |
he <he@NetBSD.org> |
Document the new ${name}_env feature: list of new or modified environment variables to set when starting ${command}.
|
| #
11a6dbe7 |
| 30-Apr-2008 |
martin <martin@NetBSD.org> |
Convert TNF licenses to new 2 clause variant
|
| #
2ecdf58c |
| 31-Dec-2007 |
ad <ad@NetBSD.org> |
Remove systrace. Ok core@.
|
| #
31edfc6f |
| 06-Apr-2007 |
apb <apb@NetBSD.org> |
* Add a stop_boot() function in rc.subr, to terminate a multi-user boot by killing the parent process. The parent's PID is saved in $RC_PID. * In all rc.d/* scripts that previously tried to stop t
* Add a stop_boot() function in rc.subr, to terminate a multi-user boot by killing the parent process. The parent's PID is saved in $RC_PID. * In all rc.d/* scripts that previously tried to stop the boot, replace in-line code with "stop_boot". * Document this.
This should fix PR 29822.
show more ...
|
| #
3c81b28a |
| 12-Oct-2004 |
lukem <lukem@NetBSD.org> |
* Implement load_rc_config_var cmd var to load the rc.conf(5) configuration for cmd and set var in the current shell, using 'load_rc_config var' in a sub-shell to avoid unwanted side-effects.
* Implement load_rc_config_var cmd var to load the rc.conf(5) configuration for cmd and set var in the current shell, using 'load_rc_config var' in a sub-shell to avoid unwanted side-effects.
* Improve required_vars warning message.
show more ...
|
| #
ed8de01a |
| 29-Apr-2004 |
gendalia <gendalia@NetBSD.org> |
Flasg -> Flags
|
| #
1913c0ff |
| 02-Apr-2004 |
wiz <wiz@NetBSD.org> |
Simplify sentence.
|
| #
3c8a1444 |
| 02-Apr-2004 |
jmmv <jmmv@NetBSD.org> |
Introduce and use the rcvar_manpage variable, which contains the manual page name where the user should look at for documentation about rcvar. It defaults to 'rc.subr(5)', as rc.subr is mainly used
Introduce and use the rcvar_manpage variable, which contains the manual page name where the user should look at for documentation about rcvar. It defaults to 'rc.subr(5)', as rc.subr is mainly used by rc.d scripts.
This variable is useful to let the daily, weekly, monthly and security scripts tune the warning message shown when any of the variables they handle is not properly set.
Closes PR misc/23908.
show more ...
|
| #
f3bab2a8 |
| 06-Jan-2004 |
lukem <lukem@NetBSD.org> |
Implement ``one'' prefix to allow a "one shot" operation as if ${rcvar}=yes yet all the other prerequisite tests are still performed. The existing ``force'' prefix is a sledgehammer that ignores all
Implement ``one'' prefix to allow a "one shot" operation as if ${rcvar}=yes yet all the other prerequisite tests are still performed. The existing ``force'' prefix is a sledgehammer that ignores all the prerequisite checks and always returns a zero exit status; this is a more gentle approach to the problem of "manipulate this disabled service without editing rc.conf(5)".
show more ...
|
| #
4296d7d4 |
| 06-May-2003 |
jmmv <jmmv@NetBSD.org> |
Drop trailing whitespace. Reviewed by wiz.
|
| #
45ad5c95 |
| 06-Jan-2003 |
wiz <wiz@NetBSD.org> |
successful with only one l.
|
| #
28d021bc |
| 08-Jul-2002 |
atatat <atatat@NetBSD.org> |
Add systrace(1) support to rc.subr. Most services (eg, ${name} is inetd) started from rc can now be run under systrace by setting ${name}_systrace to a set of flags to be passed to systrace. Note t
Add systrace(1) support to rc.subr. Most services (eg, ${name} is inetd) started from rc can now be run under systrace by setting ${name}_systrace to a set of flags to be passed to systrace. Note that policies need to generated before you do this.
show more ...
|
| #
0e798bbe |
| 18-Apr-2002 |
lukem <lukem@NetBSD.org> |
minor improvements, including consistency in how variables are formatted.
|