| #
f99f0ee1
|
| 22-May-2024 |
Alexander Leidinger <netchild@FreeBSD.org> |
rc.d: add a service jails config to all base system services
This gives more permissions to services (e.g. network access to services which require this) when they are started as an automatic servic
rc.d: add a service jails config to all base system services
This gives more permissions to services (e.g. network access to services which require this) when they are started as an automatic service jail.
The sshd patch is important for the sshd-related functionality as described in the man-page in the service jails part.
The location of the added env vars is supposed to allow overriding them in rc.conf, and to hard-disable the use of svcj for some parts where it doesn't make sense or will not work.
Only a subset of all of the services are fully tested (I'm running this since more than a year with various services started as service jails). The untested parts should be most of the time ok, in some edge-cases more permissions are needed inside the service jail. Differential Revision: https://reviews.freebsd.org/D40371
show more ...
|
| #
d0b2dbfa
|
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
19a6267d
|
| 13-Mar-2022 |
Jose Luis Duran <jlduran@gmail.com> |
rc.d/*: Use startmsg instead of echo on start messages
By rc.conf(5), setting rc_startmsgs="NO" should silence start messages.
Fix a few rc scripts by using startmsg.
PR: 255207 Reported by: Jose
rc.d/*: Use startmsg instead of echo on start messages
By rc.conf(5), setting rc_startmsgs="NO" should silence start messages.
Fix a few rc scripts by using startmsg.
PR: 255207 Reported by: Jose Luis Duran <jlduran@gmail.com> Reviewed by: imp, 0mp Approved by: imp (src) Differential Revision: https://reviews.freebsd.org/D34514
show more ...
|
| #
0696600c
|
| 17-Oct-2018 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update bec
Move the rc framework out of sbin/init into libexec/rc.
The reasons for this are forward looking to pkgbase: * /sbin/init is a special binary; try not to replace it with every package update because an rc script was touched. (a follow-up commit will make init its own package) * having rc in its own place will allow more easy replacement of the rc framework with alternatives, such as openrc.
Discussed with: brd (during BSDCam), kmoore Requested by: cem, bz PR: 231522 Approved by: re (gjb)
show more ...
|
| #
1135e97b
|
| 28-Jul-2018 |
Brad Davis <brd@FreeBSD.org> |
Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan.
Approved by: will (mentor) Differential Revision:
Move rc startup scripts from etc/ to sbin/init/
This keeps most startup scripts as CONFS per discussion on src-committers from back during BSDCan.
Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16466
show more ...
|
| #
6c1a5e83
|
| 23-Apr-2016 |
Lars Engels <lme@FreeBSD.org> |
- Add descriptions to most of the rc scripts. Those are mostly taken from their daemon's manpage and probably improved. - Consistently use "filesystem" not "file system".
Approved by: bapt, brueff
- Add descriptions to most of the rc scripts. Those are mostly taken from their daemon's manpage and probably improved. - Consistently use "filesystem" not "file system".
Approved by: bapt, brueffer Differential Revision: D452
show more ...
|
| #
801c4383
|
| 14-Jan-2012 |
Doug Barton <dougb@FreeBSD.org> |
Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned.
The concept of set_rcvar() was nice in theory, but the forks it creates are a
Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned.
The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones.
During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps.
show more ...
|
| #
66e5a431
|
| 14-Sep-2009 |
Ed Maste <emaste@FreeBSD.org> |
Protect cross-script invocation by checking that the target script exists. This allows pruning of rc.d scripts without getting too many ugly boottime error messages.
Inspired by phk's r128714 change
Protect cross-script invocation by checking that the target script exists. This allows pruning of rc.d scripts without getting too many ugly boottime error messages.
Inspired by phk's r128714 change to netif.
show more ...
|
| #
2b985169
|
| 16-Jul-2008 |
Doug Barton <dougb@FreeBSD.org> |
As previously discussed, add the svn:executable property to all scripts
|
| #
2e598474
|
| 26-May-2008 |
Bjoern A. Zeeb <bz@FreeBSD.org> |
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7.
This is wh
Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE and parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7.
This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation
Discussed with: rwatson, re
show more ...
|
| #
30b6f51a
|
| 10-Apr-2008 |
Brooks Davis <brooks@FreeBSD.org> |
Declare _ppp_profile_cleaned, _punct, and _punct_c local in ppp_start_profile().
Reported by: yar MFC after: 1 week
|
| #
ef09860e
|
| 06-Apr-2008 |
Brooks Davis <brooks@FreeBSD.org> |
Fix a stupid typo.
Reviewed by: bz
|
| #
14b0729b
|
| 28-Mar-2008 |
Brooks Davis <brooks@FreeBSD.org> |
Add support for hardwiring ppp sessions to particular devices with new per-profile variables of the form ppp_<profile>_unit. No ppp_unit variable is supported since tying the same unit to more than
Add support for hardwiring ppp sessions to particular devices with new per-profile variables of the form ppp_<profile>_unit. No ppp_unit variable is supported since tying the same unit to more than one profile won't work.
PR: conf/122127 MFC after: 1 week
show more ...
|
| #
6ea3dc37
|
| 26-Mar-2008 |
Brooks Davis <brooks@FreeBSD.org> |
Allow the characters .-+/ to appear in ppp profile names by folding them to _ when evaluating ppp_<profile>_nat and ppp_<profile>_mode. Document the per-profile variables.
PR: conf/121452, conf/12
Allow the characters .-+/ to appear in ppp profile names by folding them to _ when evaluating ppp_<profile>_nat and ppp_<profile>_mode. Document the per-profile variables.
PR: conf/121452, conf/122127 (partial) MFC after: 1 week
show more ...
|
| #
ae4d6ea8
|
| 26-Jan-2008 |
Mike Makonnen <mtm@FreeBSD.org> |
Generally, anything that runs rc.d scripts internally should start using the quiet prefix (i.e. quietstart, quietstop, etc...).
|
| #
69204f46
|
| 18-Oct-2007 |
Maksim Yevmenkin <emax@FreeBSD.org> |
Teach /etc/rc.d/ppp how to start/stop individual instances of ppp. This is an extension of previous commit.
Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru > Reviewed by: mtm MFC after:
Teach /etc/rc.d/ppp how to start/stop individual instances of ppp. This is an extension of previous commit.
Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru > Reviewed by: mtm MFC after: 3 days
show more ...
|
| #
b1e50be2
|
| 12-Oct-2007 |
Maksim Yevmenkin <emax@FreeBSD.org> |
Teach /etc/rc.d/ppp to start multiple instances of ppp.
ppp_profile variable can now contain multiple profiles. Overrides for ppp mode and nat can go into ppp_$profile_mode and ppp_$profile_nat vari
Teach /etc/rc.d/ppp to start multiple instances of ppp.
ppp_profile variable can now contain multiple profiles. Overrides for ppp mode and nat can go into ppp_$profile_mode and ppp_$profile_nat variables respectively. If those are not specified, defaults from ppp_mode and ppp_nat are used.
Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru > Reviewed by: mtm MFC after: 1 week
show more ...
|
| #
0a9b2100
|
| 31-Mar-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
Make subroutine names more conformant with other scripts in rc.d.
MFC After: 2 weeks
|
| #
7e75ef13
|
| 26-Oct-2006 |
Tai-hwa Liang <avatar@FreeBSD.org> |
Re-sync'ing pf rules in post command as we already did for ipfilter.
With this patch, pf rules with dynamically created devices such like tun0 works without further intervention.
Reviewed by: mlaie
Re-sync'ing pf rules in post command as we already did for ipfilter.
With this patch, pf rules with dynamically created devices such like tun0 works without further intervention.
Reviewed by: mlaier MFC after: 3 days
show more ...
|
| #
b29890a3
|
| 28-Oct-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Use:
command="/path/to/${name}"
since it's applicable here. It's the current style of rc.d.
Pointed out by: pjd
|
| #
23b50ea7
|
| 28-Oct-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Transforming "ppp-user" into just "ppp", step 1: The rcorder(8) condition PROVIDE'd by the script and REQUIRE'd by the others becomes "ppp".
The ultimate goal of the transformation is to reduce conf
Transforming "ppp-user" into just "ppp", step 1: The rcorder(8) condition PROVIDE'd by the script and REQUIRE'd by the others becomes "ppp".
The ultimate goal of the transformation is to reduce confusion resulting from the fact that $name has been "ppp" already.
Discussed with: pjd, -rc
show more ...
|
| #
180e996d
|
| 23-Oct-2005 |
Yaroslav Tykhiy <ytykhiy@gmail.com> |
Don't be lazy, set the "command" variable even if /etc/defaults/rc.conf will provide foo_program, too. By specifying "command" we explicitly say that we're going to rely on rc.subr(8) default methods
Don't be lazy, set the "command" variable even if /etc/defaults/rc.conf will provide foo_program, too. By specifying "command" we explicitly say that we're going to rely on rc.subr(8) default methods, and rc.subr(8) will take advantage of this soon.
The majority of our rc.d scripts already set "command" if appropriate, so fix just the non-compliant handful.
show more ...
|
| #
f6370f27
|
| 15-Dec-2004 |
Brian Somers <brian@FreeBSD.org> |
Use rc.subr
PR: 72505 Submitted by: Amir Shalem <amir@active.ath.cx>
|
| #
337338ee
|
| 07-Oct-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Remove the requirement for the FreeBSD keyword as it no longer makes any sense.
Discussed with: dougb, brooks MFC after: 3 days
|
| #
bd57d5b0
|
| 08-Mar-2004 |
Pawel Jakub Dawidek <pjd@FreeBSD.org> |
Mark scripts as not usable inside a jail by adding keyword 'nojail'.
Some suggestions from: rwatson, Ruben de Groot <mail25@bzerk.org>
|