diff options
author | yar <yar@FreeBSD.org> | 2006-12-27 13:22:41 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-12-27 13:22:41 +0000 |
commit | 5ec2f453ecd8f659435324dfa8bfaa1bd905bae4 (patch) | |
tree | 5da36516a8e1df6da57b7ecb88df8766c5b98564 /share | |
parent | c6dfd2ef7a2c3c3bda8f05278c7e9d0cb0f21f8d (diff) | |
download | FreeBSD-src-5ec2f453ecd8f659435324dfa8bfaa1bd905bae4.zip FreeBSD-src-5ec2f453ecd8f659435324dfa8bfaa1bd905bae4.tar.gz |
MFp4:
Document my recent changes to rc.subr(8):
- there is $required_modules now;
- $required_* are checked before invoking a custom start method, too.
MFC after: 1 month
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man8/rc.subr.8 | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/share/man/man8/rc.subr.8 b/share/man/man8/rc.subr.8 index 3bec150..abebb76 100644 --- a/share/man/man8/rc.subr.8 +++ b/share/man/man8/rc.subr.8 @@ -36,7 +36,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 21, 2006 +.Dd December 27, 2006 .Dt RC.SUBR 8 .Os .Sh NAME @@ -523,19 +523,47 @@ Defaults to the value of .Va command . .It Va required_dirs Check for the existence of the listed directories -before running the default +before running the .Cm start method. .It Va required_files Check for the readability of the listed files -before running the default +before running the .Cm start method. +.It Va required_modules +Ensure that the listed kernel modules are loaded +before running the +.Cm start +method. +This is done after invoking the commands from +.Va start_precmd +so that the missing modules are not loaded in vain +if the preliminary commands indicate a error condition. +A word in the list can have an optional +.Dq Li : Ns Ar modname +or +.Dq Li ~ Ns Ar pattern +suffix. +The +.Ar modname +or +.Ar pattern +parameter is passed to +.Ic load_kld +through a +.Fl m +or +.Fl e +option, respectively. +See the description of +.Ic load_kld +in this document for details. .It Va required_vars Perform .Ic checkyesno on each of the list variables -before running the default +before running the .Cm start method. .It Va ${name}_chdir |