| #
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/
|
| #
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 ...
|
| #
6a4b451a
|
| 11-Jan-2017 |
Ian Lepore <ian@FreeBSD.org> |
Follow r311103: add "pool" to the keywords that rc.d/ntpdate examines to find a server address in ntp.conf.
Submitted by: Ronald Klop <ronald@klop.ws> Pointy hat to: ian
|
| #
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 ...
|
| #
3e0f3c1e
|
| 05-Nov-2013 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Remove remnants of BIND from /etc, since there is no BIND in base now.
Sorry, that would break users running head and BIND from ports, since ports rely on these scripts. The ports will be fixed soon
Remove remnants of BIND from /etc, since there is no BIND in base now.
Sorry, that would break users running head and BIND from ports, since ports rely on these scripts. The ports will be fixed soon.
Reviewed by: erwin
show more ...
|
| #
cc565595
|
| 18-Jun-2013 |
Devin Teske <dteske@FreeBSD.org> |
Allow $ntpdate_config to be NULL. Due to a lack of surrounding quotes, when ntpdate_config was set to NULL the conditional would (counter to prevailing logic) succeed -- leading to awk attempting to
Allow $ntpdate_config to be NULL. Due to a lack of surrounding quotes, when ntpdate_config was set to NULL the conditional would (counter to prevailing logic) succeed -- leading to awk attempting to redirect from a NULL pathname standard-in. While we're here, make the script consistant with itself by removing the {curlies} around ntpdate_config (they are unnecessary).
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 ...
|
| #
98255d74
|
| 30-Jan-2010 |
Hajimu UMEMOTO <ume@FreeBSD.org> |
Allow use of -6 option to "server" and "peer" in ntp.conf.
MFC after: 1 week
|
| #
ca3a4056
|
| 20-Jul-2006 |
Florent Thoumie <flz@FreeBSD.org> |
- Remove hardcoded /etc/ntp.conf configuration file from ntpdate rc.d script and replace it with a new ntpdate_config variable. - Document it in defaults/rc.conf and rc.conf.5. - Document ntpdate_hos
- Remove hardcoded /etc/ntp.conf configuration file from ntpdate rc.d script and replace it with a new ntpdate_config variable. - Document it in defaults/rc.conf and rc.conf.5. - Document ntpdate_hosts in defaults/rc.conf.
Requested by: Chris Timmons <cwt@networks.cwu.edu> Approved by: cperciva (mentor, implicit) MFC after: 1 week
show more ...
|
| #
6e7b73e0
|
| 16-Jan-2006 |
Doug Barton <dougb@FreeBSD.org> |
REQUIRE named. On all systems I've examined running HEAD and RELENG_6 this will be a noop, however as we introduce local startup scripts to the base rcorder, we'll see more cases where the previous s
REQUIRE named. On all systems I've examined running HEAD and RELENG_6 this will be a noop, however as we introduce local startup scripts to the base rcorder, we'll see more cases where the previous status quo will need to be made explicit to avoid having it disrupted when random local scripts are added to the mix.
show more ...
|
| #
27c4192a
|
| 21-Dec-2005 |
Doug Barton <dougb@FreeBSD.org> |
Several users have commented (via filing PRs) that having ntp* depend on devfs is useful so that a hardware time device can start with its necessary device nodes already in place. While this ordering
Several users have commented (via filing PRs) that having ntp* depend on devfs is useful so that a hardware time device can start with its necessary device nodes already in place. While this ordering happens as a side effect currently in HEAD, and the PRs were generally fixed via upgrades, etc; it's better to make it explicit.
While I'm here, ntpd should REQUIRE ntpdate, rather than ntpdate using BEFORE: ntpd.
show more ...
|
| #
02f8f932
|
| 17-Jan-2005 |
Ceri Davies <ceri@FreeBSD.org> |
s/ntpdate_command/ntpdate_program/ to match rc.conf(5) and /etc/defaults/rc.conf.
PR: conf/76188 Submitted by: Arne Wörner <arne_woerner at yahoo dot com> Approved by: murray MFC After: 7 days
|
| #
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
|
| #
6e03664c
|
| 15-Sep-2004 |
Sean Chittenden <seanc@FreeBSD.org> |
Bring back etc/rc.d/ntpdate as requested by scads of people. This isn't a complete backout as the ntpd_sync_on_start etc/rc.conf tunable is still present, though the default is now NO (was YES). Si
Bring back etc/rc.d/ntpdate as requested by scads of people. This isn't a complete backout as the ntpd_sync_on_start etc/rc.conf tunable is still present, though the default is now NO (was YES). Since we're no longer syncing time at startup by default when ntpd is enabled (as was the case 24hrs ago), remove UPDATING entry pointing out that ntpd(1) -g is slower than ntpdate(1).
Hopefully ntpd_sync_on_start="YES" can be made the default for -CURRENT after 5.3 is cut. At the very least, this should be set to YES when a user requests to have ntpd enabled via sysinstall(1).
Requested by: many
show more ...
|
| #
756b0fff
|
| 14-Sep-2004 |
Sean Chittenden <seanc@FreeBSD.org> |
Stop using ntpdate(1) in our startup procedure. Replace ntpdate(1) with calls to ntpd -g. ntpd is noticeably slower than ntpdate, but is also more accurate. This removes the nasty hackery in rc.d/
Stop using ntpdate(1) in our startup procedure. Replace ntpdate(1) with calls to ntpd -g. ntpd is noticeably slower than ntpdate, but is also more accurate. This removes the nasty hackery in rc.d/ntpdate that would parse out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config file). By default, ntpd *will* sync with its listed time servers. To turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be added to /etc/rc.conf. If ntpd is not enabled (the default), then time is not synced on startup. ntpdate has been depreciated by the ntpd authors for quite some time so this change shouldn't be unexpected.
Suggested by: des Approved by: roberto (resident ntp guru)
show more ...
|
| #
696733c7
|
| 29-Mar-2004 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Fix the case where $ntpdate_hosts was not specified and /etc/ntp.conf does not exist.
Submitted by: ru
|
| #
75213c3e
|
| 22-Mar-2004 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Set start_cmd and stop_cmd correctly so the code that extracts the names of the ntp servers from ntp.conf is actually used. Remove pidfile since ntpdate is not a daemon.
|
| #
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>
|
| #
82387f41
|
| 17-Jan-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than nece
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, remove NetBSD specific stuff (which made our scripts more complicated than necessary).
The NetBSD ident string will be left intact, both for history and also incase we wish to pull in future versions.
show more ...
|
| #
1afce003
|
| 17-Jan-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated
Luke Mewburn has indicated that they (NetBSD) are not interested in keeping the scripts under rc.d in sync with us. So, begin removal of NetBSD specific stuff (which made our scripts more complicated than necessary), starting with the NetBSD KEYWORD.
show more ...
|
| #
14308510
|
| 12-Oct-2002 |
Jens Schweikhardt <schweikh@FreeBSD.org> |
Fix style bugs: * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespac
Fix style bugs: * Space -> tabs conversion. * Removed blanks before semicolon in "if ... ; then". * Proper indentation of misindented lines. * Put a full stop after some comments. * Removed whitespace at end of line.
Approved by: silence from gordon
show more ...
|
| #
77e55efb
|
| 06-Sep-2002 |
Gordon Tetlow <gordon@FreeBSD.org> |
Convert from `${CMD_OSTYPE}` to ${OSTYPE}. This saves a shell invocation on OS-dependent case switches.
|
| #
27bc1b28
|
| 13-Jun-2002 |
Gordon Tetlow <gordon@FreeBSD.org> |
Merge in all the changes that Mike Makonnen has been maintaining for a while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net> Re
Merge in all the changes that Mike Makonnen has been maintaining for a while. This is only the script pieces, the glue for the build comes next.
Submitted by: Mike Makonnen <makonnen@pacbell.net> Reviewed by: silence on -current and -hackers Prodded by: rwatson
show more ...
|