summaryrefslogtreecommitdiffstats
path: root/share/man/man8/rc.subr.8
Commit message (Collapse)AuthorAgeFilesLines
* - Add a global option where we can protect processes when swap spacearaujo2016-02-241-1/+11
| | | | | | | | | | | | | | | | | | | | | | is exhausted. How to use: Basically we need to add on rc.conf an another option like: If we want to protect only the main processes. syslogd_oomprotect="YES" If we want to protect all future children of the specified processes. syslogd_oomprotect="ALL" PR: 204741 (based on) Submitted by: eugen@grosbein.net Reviewed by: jhb, allanjude, rpokala and bapt MFC after: 4 weeks Relnotes: Yes Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D5176
* Add ${name}_env and ${name}_prepend. ${name}_env is an argument list whichhrs2014-10-111-1/+25
| | | | | will be passed to env(1). ${name}_prepend is simply prepended to the command line for $command.
* Add a setup script for unbound(8) called local-unbound-setup. Itdes2013-09-231-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | generates a configuration suitable for running unbound as a caching forwarding resolver, and configures resolvconf(8) to update unbound's list of forwarders in addition to /etc/resolv.conf. The initial list is taken from the existing resolv.conf, which is rewritten to point to localhost. Alternatively, a list of forwarders can be provided on the command line. To assist this script, add an rc.subr command called "enabled" which does nothing except return 0 if the service is enabled and 1 if it is not, without going through the usual checks. We should consider doing the same for "status", which is currently pointless. Add an rc script for unbound, called local_unbound. If there is no configuration file, the rc script runs local-unbound-setup to generate one. Note that these scripts place the unbound configuration files in /var/unbound rather than /etc/unbound. This is necessary so that unbound can reload its configuration while chrooted. We should probably provide symlinks in /etc. Approved by: re (blanket)
* Remove documentation for set_rcvar() now that it has been removed.dougb2012-01-141-29/+1
|
* rc.d: document 'quiet' prefix and fix dhclient/devd interactionrea2012-01-121-1/+17
| | | | | | | | | | | | | | | | | | | | | Document the current semantics of the 'quiet' command prefix in the rc.subr(8). Fix dhclient rc.d script: it should not call err() for non-DHCP-enabled interface when it is called from devd, because the latter just blindly calls 'service dhclient quietstart' on each "link up" event. Since the 'quietstart' will silence the message "Cannot 'start' <foo>. Set <foo>_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'." and running dhclient on the non-DHCP-enabled interface is the same thing as running the service <foo> without <foo>_enable set, such modification is in sync with the current semantics of the 'quiet' prefix. Approved by: glebius Reviewed by: freebsd-rc list MFC after: 2 weeks
* Clean up rc.subr man page after removing leftover NetBSD compat. Alsoemaste2010-01-281-38/+2
| | | | | | switch to 2-clause license per NetBSD rc.subr.8 r1.19. Submitted by: Alex Kozlov
* Properly underline force_depend's parameter.lme2008-07-201-1/+1
| | | | Reviewed by: brueffer
* Fix punctiation.skv2008-03-311-1/+1
| | | | Approved by: ru
* o Add a note that checkyesno takes a variable by its name, not value.yar2007-10-261-12/+14
| | | | o Improve mdoc(7) markup and style of the paragraph on stop_boot.
* o Implement the stop_boot subroutine [1]. This subroutine can be used bymtm2007-05-181-1/+18
| | | | | | | | | | | | | | | | | scripts in rc.d to stop rc(8) from booting into multi-user mode when a critical or severe error condition is encountered. o Modify scripts in etc/rc.d that already implemented this functionality independently. o Document it. [1] - This subroutine was implemented in FreeBSD in rc.d/fsck. I moved it to rc.subr(8). Our version differs slightly in that it takes an optional argument to stop the boot even if "autoboot" is not set. Obtained from: NetBSD MFC after: 2 weeks
* MFp4:yar2006-12-271-4/+32
| | | | | | | | 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
* Backout this commit since it breaks startup and some scripts inflz2006-08-221-30/+4
| | | | | | | | | | | | | | | | | certain conditions. I haven't been able to find a better solution yet: - Set a two read-only variables (${prefix} and ${etcdir}). This is especially useful when using /etc/rc.d scripts with third-party software installed from ports. - Fix rc.d/sshd to work with openssh from ports using ${etcdir} instead of hardcoded /etc. - Reflect prefix/etcdir changes in rc.subr.8. src/etc/rc.d/sshd: rev 1.9 -> 1.10 src/etc/rc.subr: rev 1.51 -> 1.52 src/share/man/man8/rc.subr.8: rev 1.11 -> 1.12 Approved by: cperciva (mentor)
* Improve mark-up: References to "start" as an rc.d methodyar2006-07-241-3/+9
| | | | | | should be tagged with ".Cm". (Refs to "stop" are OK already.) MFC after: 3 days
* Don't forget to touch Dd.yar2006-06-211-1/+1
|
* Quite a number of rc.d scripts try to load kernel modules. Manyyar2006-06-211-0/+16
| | | | | | | | | | of them do that conditionally depending on kldstat. The code is duplicated all over, but bugs can be uniqie. To make the things more consistent, introduce a new rc.subr function, load_kld, which takes care of loading a kernel module conditionally. (Found this lying for a while in my p4 branch for various hacks.)
* Reflect latest changes in rc.subr wrt prefix/etcdir variables being setflz2006-06-071-11/+37
| | | | | | | | automatically by load_rc_config. With help from: ru (mdoc-fu) Reviewed by: brueffer Approved by: cperciva
* - Sync rc.subr with NetBSD.flz2006-04-041-1/+14
| | | | | | | | | - Merge some documentation bits. Reviewed by: brooks, simon (doc) Approved by: cperciva (mentor) Obtained from: NetBSD MFC after: 3 days
* Forgot to bump .Dd in the last commit.yar2006-02-221-1/+1
|
* Document the relation between $command and $foo_program.yar2006-02-221-0/+15
| | | | | PR: docs/68453 MFC after: 3 days
* Use consistent punctuation and vertical indenting around .Dl's.yar2005-10-261-8/+10
| | | | Wrap a too long line.
* Document that `reload' is not provided by defaultyar2005-10-261-1/+11
| | | | yet it can be enabled when applicable.
* Fixed markup.ru2004-07-091-199/+216
|
* Mechanically kill hard sentence breaks and double whitespaces.ru2004-07-031-7/+14
|
* NetBSD rev. 1.10mtm2004-02-271-16/+51
| | | | | | | | | | | | | | successful [is spelled] with only one l NetBSD rev. 1.12 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)". Obtained From: NetBSD
* FreeBSD has no systrace(1), and our rc.subr does not support it.dougb2003-04-221-12/+0
| | | | Submitted by: Simon L. Nielsen <simon@nitro.dk>
* english(4) police.schweikh2002-12-271-7/+7
|
* Update rc(8) manpage to reflect rc.dgordon2002-11-211-0/+770
Add an rc.subr(8) manpage Hook rc.subr.8 up to the build. Submitted by: Mike Makonnen <mtm@identd.net> Approved by: re@ (bmah) Obtained from: NetBSD
OpenPOWER on IntegriCloud