| #
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/
|
| #
f72926ea
|
| 23-Jan-2022 |
Rick Macklem <rmacklem@FreeBSD.org> |
mountd: Delay starting mountd until after mountlate
PR#254282 reports a problem where nullfs mounts cannot be exported via mountd for FreeBSD 13.0.
The problem seems to be that, to do the nullfs mo
mountd: Delay starting mountd until after mountlate
PR#254282 reports a problem where nullfs mounts cannot be exported via mountd for FreeBSD 13.0.
The problem seems to be that, to do the nullfs mounts in /etc/fstab, they require the "late" mount option, so that the underlying filesystem is mounted (ZFS for the PR).
Adding "mountlate" to the REQUIRE list in /etc/rc.d/mountd fixes the problem, but that results in a dependency cycle because /etc/rc.d/lockd specifies:
REQUIRE: nfsd BEFORE: DAEMON --> which forces mountd to preceed DAEMON.
This patch removes "nfsd" from REQUIRE for lockd and statd, then adds mountlate to REQUIRE for mountd, to fix this problem. Having lockd REQUIRE nfsd was done in the NetBSD code when it was pulled into FreeBSD and there does not seem to be a need for this.
In case this causes problems, a long MFC has been specified.
PR: 254282 Differential Revision: https://reviews.freebsd.org/D33256 MFC after: 3 months
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 ...
|
| #
20ceedfb
|
| 14-Feb-2012 |
Doug Barton <dougb@FreeBSD.org> |
Fix various issues with the NFS and RPC related scripts:
1. Add new functionality to the force_depend method to incorporate the tests for whether the service is enabled and/or already running. 2.
Fix various issues with the NFS and RPC related scripts:
1. Add new functionality to the force_depend method to incorporate the tests for whether the service is enabled and/or already running. 2. Add a new option to bypass checking only that the service is enabled at boot time, and always check if it is running. 3. Use this new functionality to greatly simplify the rc.d scripts that use force_depend. 4. Add a force_depend for statd in lockd 5. Remove the check that either nfs_server or nfs_client is _enable'd from statd and lockd. This was always overkill, and prevented using the {one|force}start options, as well as stop'ing on the command line. 6. The yp* scripts had some of their arguments in various weird orders. Bring them into line with the model. 7. If mountd fails to create /var/db/mountdtab, err out.
Ideas, suggestions, and/or review from delphij and jilles. Pointy hats are completely my responsibility however.
show more ...
|
| #
1e2cac7b
|
| 08-Jul-2011 |
Rick Macklem <rmacklem@FreeBSD.org> |
Delete the /etc/rc.d/nfsserver script, since it is no longer used by /etc/rc.d/nfsd and it is no longer necessary to load the old nfs server by default, when nfs_server_enable="YES".
Tested by: sgk
Delete the /etc/rc.d/nfsserver script, since it is no longer used by /etc/rc.d/nfsd and it is no longer necessary to load the old nfs server by default, when nfs_server_enable="YES".
Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (Andrzej Tobola)
show more ...
|
| #
04f0f225
|
| 16-Jul-2008 |
Doug Barton <dougb@FreeBSD.org> |
Add the shutdown KEYWORD to those scripts that start persistent services to allow them to do a "clean" shutdown.
I purposely avoided making changes to network-related stuff since the system shutting
Add the shutdown KEYWORD to those scripts that start persistent services to allow them to do a "clean" shutdown.
I purposely avoided making changes to network-related stuff since the system shutting down is pretty conclusive, and there may be complicated dependencies on the network that I would rather not try to unravel.
I also skipped kerberos-related stuff for the reasons above, and because I have no way to test it.
show more ...
|
| #
2b985169
|
| 16-Jul-2008 |
Doug Barton <dougb@FreeBSD.org> |
As previously discussed, add the svn:executable property to all scripts
|
| #
cca7688f
|
| 27-Jun-2008 |
Mike Makonnen <mtm@FreeBSD.org> |
Backout r179941. The nfsclient knob always confuses me. I should have double-checked my setup before commiting.
Noticed by: Florian Smeets Pointy hat to: mtm
|
| #
3e9cc769
|
| 23-Jun-2008 |
Mike Makonnen <mtm@FreeBSD.org> |
Argh! s/nfs_client_enable/nfsclient_enable/g
|
| #
e3c46a33
|
| 08-Dec-2007 |
Doug Barton <dougb@FreeBSD.org> |
Remove $NetBSD$ CVS tags. We no longer attempt to synch our rc.d files with theirs, so this information doesn't need to be in the live file. Having it in our CVS history is enough.
|
| #
5060bcfa
|
| 03-Sep-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
Start lockd after statd.
Approved by: re (bmah) Noticed by: Ted Faber <faber@ISI.EDU>
|
| #
33eba7d4
|
| 18-Aug-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
My forced commit to note the repo-copy (naturally) changed the $FreeBSD$ keyword line, so that when I applied the patch to my check-in tree the top half of my patch failed to apply. Off course I saw
My forced commit to note the repo-copy (naturally) changed the $FreeBSD$ keyword line, so that when I applied the patch to my check-in tree the top half of my patch failed to apply. Off course I saw what I *expected* to see (the bottom half succeeded) and didn't notice that it had failed to apply cleanly.
Approved by: re (bmah)
show more ...
|
| #
6ee326fe
|
| 17-Aug-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked well in most cases, except one. The 'restart' case was not working as expected. Specifically, it would stop both lock
The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked well in most cases, except one. The 'restart' case was not working as expected. Specifically, it would stop both lockd and statd, but it would restart only statd (which appears first in the script). This is because rc.subr(8) contains code to guard against infinite recursion in the 'restart' casae.
To fix this use the traditional approach of controlling only one server from one script by breaking out rc.d/nfslocking into its contituent parts: rc.d/lockd and rc.d/statd. Keep rc.d/nfslocking around but don't include it in the boot rcorder(8)ing.
PR: conf/107316 Approved by: re (bmah) MFC after: 2 weeks
show more ...
|
| #
c76ad764
|
| 17-May-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
The precmd routine does not need to check whether the command should be "forced". If some pre-condition is not met, it should fail as it normally does and rc.subr(8) will make the appropriate decisio
The precmd routine does not need to check whether the command should be "forced". If some pre-condition is not met, it should fail as it normally does and rc.subr(8) will make the appropriate decision. Incidentally, the previous behaviour had a bug where the "force" flag was respected only when checking rc.conf(5) knobs. The flag was ignored when verifying the rpcbind(8) dependency.
MFC after: 2 weeks
show more ...
|
| #
f3636019
|
| 04-Apr-2007 |
Matteo Riondato <matteo@FreeBSD.org> |
Add rpc_statd_flags and rpc_lockd_flags options to allow options to be passed to rpc.statd and rpc.lockd
MFC after: 1 week
|
| #
624321b5
|
| 30-Mar-2007 |
Mike Makonnen <mtm@FreeBSD.org> |
Record rc.d/nfslocking dependency on rc.d/rpcbind.
PR: conf/105465 Submitted By: ru (with minor cosmetic change) MFC-After: 1 month
|
| #
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>
|
| #
7f69f64c
|
| 23-Feb-2004 |
Christian Brueffer <brueffer@FreeBSD.org> |
Fix typo
|
| #
097b26a6
|
| 19-Feb-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
In-line documentation.
Prodded by: alfred
|
| #
62e02b0d
|
| 17-Jan-2004 |
Mike Makonnen <mtm@FreeBSD.org> |
Remove variables whose sole purpose was to make easier to work with the NetBSD specific stuff.
|
| #
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 ...
|