| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
This change was submitted to the freebsd-audit mailing list for review
but received no feedback. Hindsight-enabled reviews are welcome.
PR: conf/31358
Submitted: Thomas Quinot <thomas@cuivre.fr.eu.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
types (networkfs_types) with a version that includes the original
list.
This increases the scope for user error and also means that systems with
networkfs_types set in /etc/rc.conf will not benefit from changes to the
list in /etc/defaults/rc.conf on upgrade.
Instead, store the default list in /etc/rc itself and allow the operator
to append to that list by specifying her own list in networkfs_types.
Rename networkfs_types to extra_netfs_types accordingly, as the new name
better describes the purpose of the variable. Default the value to
'NO'.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the network is initialized. This was first implemented in rev 1.268
of src/etc/rc, but was backed out at wollman's request.
The objection was that the right place for the fix is in mount(8).
Having looked at that problem, I find it hard to believe that
the hoops one would have to jump through can be justified by the
desire for purity alone.
Note that there are reported issues surrounding nfsclient kernel
support and mount_nfs(8), which currently make NFS an ugly exception
to the general case.
With this change, systems with non-NFS network filesystems configured
for mounting on startup in /etc/fstab are no longer guaranteed to
fail on startup.
|
|
|
|
|
|
| |
partition.
Submitted by: ru
|
|
|
|
|
|
|
|
|
|
|
|
| |
already set (e.g. a failed/skipped mergemaster run during an upgrade).
Without this, if script_name_sep was not set in the rc.conf files,
local scripts will not be executed on startup or shutdown.
PR: misc/32687
Submitted by: Nicholas Paufler <echofox@discordia.ca> (the problem)
Sheldon Hearn (the idea behind the fix)
Reviewed by: sheldonh
MFC after: 1 week
|
| |
|
|
|
|
| |
kldload'ing the appropriate modules before enabling the service.
|
| |
|
|
|
|
| |
I've had this on my development box for ages...
|
| |
|
| |
|
|
|
|
|
|
|
| |
Also don't give the whole path, just the script name.
Submitted by: des
Requested by: jhb
|
|
|
|
| |
Also echo with "-n".
|
|
|
|
|
|
| |
is empty.
Submitted by: Udo Schweigert <udo.schweigert@siemens.com>
|
|
|
|
| |
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
Many people like to use generic devices in rc.syscons, etc..
So rc.devfs needs to run before those rc files.
Requested by: Jos Backus <josb@cncdsl.com>
|
|
|
|
|
|
| |
executable.
Suggested by: gad
|
|
|
|
|
|
|
| |
the original commit of local_startup depended on the scripts being
executable; so there is too much precedence to change it now. About all
anyone could agree on is that rev 1.274 broke POLA and before rev 1.274
also broke POLA.
|
|
|
|
|
| |
ensure the executable bit is set on the scripts.
+ Fix VCS ID's
|
| |
|
|
|
|
|
|
|
|
|
|
| |
for separating the startup scripts' list into individual filenames.
Run the shutdown scripts in reverse alphabetical order, so dependent
services are stopped before the services they depend upon.
Reviewed by: -arch, -audit
MFC after: 3 weeks
|
|
|
|
| |
Reviewed by: USENIX Cabal (peter, jhb, wpaul, et al)
|
|
|
|
|
|
|
| |
wants to replace one of those programs.
PR: 13609
Submitted by: Goran Lowkrantz <goran.lowkrantz@infologigruppen.se>
|
|
|
|
| |
Requested by: wollman, rwatson
|
|
|
|
|
|
|
|
|
|
| |
after the network is configured.
Future remote filesystem types should be added to remote_fstypes, which
is a whitespace-delimited list of type:description pairs.
The specific problem this fixes right now is that smbfs mounts described
in /etc/ftsab were failing.
|
|
|
|
|
|
|
| |
Make the default setting YES for now to get some experience with it.
Note: If people starts seeing disk errors because of this then it
should not be backed.
|
|
|
|
|
|
|
|
|
|
| |
about non-existent mount directories (which would come
into existence after the real mount has occured) when just
testing for if there are any NFS filesystems in /etc/fstab.
PR: bin/26597
Submitted by: Dmitry Morozovsky <marck@rinet.ru>
MFC after: 3 days
|
|
|
|
|
|
|
| |
enable or disable background fsck'ing all in one shot. Default is
currently 'YES'.
Reviewed by: jkh
|
|
|
|
|
| |
the 'svr4' module already. This was a 4.x-only problem and should not
have been MFS'ed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fsck checking. Applying these changes (typically via mergemaster)
will cause your system to start running background checks on all
your soft update enabled filesystems (provided that you have
a kernel with the required functionality, e.g., one built since
the end of April). Please report any and all problems to
mckusick@mckusick.com (not mckusick@freebsd.org which I read
infrequently). See the comment above the fsck command in /etc/rc
for instructions on how to disable background checking should it
cause you too much trouble.
Several FAQs:
1) Can I reboot before the background checks are done?
Ans) Yes, when the system restarts the checks will pick up
where they left off.
2) Can a crash during checking corrupt my filesystem?
Ans) No, recovered resources are returned to the system using soft
updates which ensure that the freeing is done in a safe order.
3) How will I know if any background checks are being done?
Ans) Filesystems that are to be checked in background will be listed
as `DEFER FOR BACKGROUND CHECKING' at the usual fsck check time
during system startup.
4) What happens to the output of the background checks?
Ans) It is sent to syslog `daemon' facility log level `notice'.
5) When will this feature be available in the 4.X kernel?
Ans) Never. It is much too radical and extensive a change to be
MFC'ed. Besides, it needs many months of experience and
tuning before it is ready for widespread use.
6) What happens if a background fsck fails (i.e., fsck finds
errors that would normally require a manual fsck)?
Ans) The filesystem will be marked as needing a manual fsck.
At the next system reboot, the check will be done in
foreground and the usual actions taken (usually a failure
to go multi-user until fsck has been run by hand on the
affected filesystem).
|
|
|
|
|
|
| |
at boot time.
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
| |
/dev/log like this: if [ ! -h /dev/log ];
The man page for test(1) says that the -h switch is depracated and that
users should NOT rely on it being available. It suggest the -L switch instead.
They both do the same thing: check for the existence of the symbolic link.
PR: 26596
Submitted by: mikem <mike_makonnen@yahoo.com>
|
| |
|
|
|
|
| |
Reviewed by: phk
|
|
|
|
| |
(as well as files).
|
|
|
|
|
| |
seperate knobs for inbound (accepting SMTP connections) and outbound (just
occasionally dequeueing) sendmail daemon startup.
|
|
|
|
| |
Submitted by: David A. Panariti <davep@who.net>
|
|
|
|
| |
Reflect this.
|
|
|
|
|
|
|
|
|
|
| |
enable all harvesting options by default since having them on for
devices not present doesn't hurt anything. Leave them on by default
since for the most part they are not producing noticable slowdown,
and are about to get a lot more efficient.
Re-order part of the cheesy entropy process in preparation for
its complete removal.
|
|
|
|
|
|
| |
during the boot process. We're turning it on by default, based on the
actual presence of a configured ethernet card, and/or ppp/tun devices.
Of course, it's easy to disable in rc.conf.
|
|
|
|
|
|
| |
Defaults to off.
Obtained from: Yahoo!
|
|
|
|
|
| |
PR: 24612
Submitted by: David Drum <david@mu.org>
|
|
|
|
|
|
|
| |
to it.
PR: conf/24358
Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
|
|
|
|
| |
Reviewed by: dougb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it at boot time closer to the way we want it to be in the final version.
* Move the default directory to /var/db/entropy
* Run the entropy saving cron job every 11 minutes. This seems
to be a better default, although still bikeshed material.
* Feed /dev/random some cheesy "entropy" from various commands
and files before the disks are mounted. This gives /dev/random
a better chance of running without blocking early.
* Move the reseeding with previously stored entropy to the point
immediately after the disks are mounted.
* Make the harvesting script a little safer in regards to the
possibility of accidentally overwriting something other
than a regular file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it can be used to reseed at boot time. This will greatly increase
the chances that there will be sufficient entropy available at
boot time to prevent long delays.
For /etc/rc, remove the vmstat and iostat runs from the attempt
to provide some cheesy randomness if the files fail, since
those programs are dynamically linked, and ldd seems to want
some randomness to do its magic.
Guidance and parameters for this project were provided by
Mark Murray, based on the requirements of the Yarrow
algorithm. Some helpful suggestions for implementation
(including the tip about iostat and vmstat) were provided
by Sheldon Hearn. All blame for problems or mistakes is
mine of course.
|
|
|
|
| |
Requested by: gallatin
|
|
|
|
|
| |
syscons sh code was identical on both platforms except for whitespace
differences.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply a more consistent style to the echo statements in /etc/ scripts.
* Put quotes around each line
* Single quotes for lines with no variable interpolation
* Double quotes if there is
* Capitalize each word that begins a line
* Make echo -n 'Doing foo:' ... echo '.' more of a standard
Also:
* Use rm -f on /var/run/dev.db so if it's not there (devfs) it doesn't error
* Shorten the ldconfig messages so that the default fits on one line
* Test whether /var/msgs/bounds is a link before overwriting it
* Generally futz around with whitespace
|