summaryrefslogtreecommitdiffstats
path: root/etc/rc
Commit message (Collapse)AuthorAgeFilesLines
* Back out rev 1.268.sheldonh2001-06-101-21/+10
| | | | Requested by: wollman, rwatson
* Fix /etc/rc so that all remote filesystems, not just NFS, are mountedsheldonh2001-06-091-10/+21
| | | | | | | | | | 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.
* Add diskcheckd to /etc/rc with a knob in rc.conf.phk2001-06-031-0/+8
| | | | | | | 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.
* Don't confuse the admin with spurious error messagesyar2001-05-271-1/+1
| | | | | | | | | | 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
* Introduce a background_fsck rc.conf option which allows the user todd2001-05-221-6/+15
| | | | | | | enable or disable background fsck'ing all in one shot. Default is currently 'YES'. Reviewed by: jkh
* Back out rev 1.260. The 'streams' module is a registered dependency ofpeter2001-05-131-3/+1
| | | | | the 'svr4' module already. This was a 4.x-only problem and should not have been MFS'ed.
* Update the fsck command in /etc/rc to use the new backgroundmckusick2001-05-111-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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).
* Delete everything that's not a directory in /var/run and /var/spool/lockbrian2001-05-101-2/+5
| | | | | | at boot time. MFC after: 3 weeks
* In the /etc/rc startup script a soft link is created from /var/run/log tophk2001-04-151-1/+1
| | | | | | | | | | /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>
* MFS: deal with svr4 module's dependency on streams modulejkh2001-04-141-1/+3
|
* vnconfig(8) -> mdconfig(8).ru2001-04-101-2/+2
| | | | Reviewed by: phk
* Remove sockets found in /var/run or /var/spool/lock at boot timebrian2001-03-281-1/+1
| | | | (as well as files).
* At great personal risk, touch the sendmail startup again. This adds easypeter2001-03-131-8/+17
| | | | | seperate knobs for inbound (accepting SMTP connections) and outbound (just occasionally dequeueing) sendmail daemon startup.
* Add flags option for savecore.dougb2001-03-121-2/+2
| | | | Submitted by: David A. Panariti <davep@who.net>
* The /dev/random harvesting sysctls have had a name change.markm2001-03-101-3/+3
| | | | Reflect this.
* Avoid complicated tests of whether devices are present or not, anddougb2001-03-101-48/+10
| | | | | | | | | | 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.
* Add code to turn on the entropy harvesting sysctl's as early as possibledougb2001-03-011-0/+78
| | | | | | 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.
* Introduce the option of running fsck -y if the initial preen fails.dougb2001-02-051-2/+18
| | | | | | Defaults to off. Obtained from: Yahoo!
* Run purgedir (a local function) on /var/run instead of rm /var/run/*brian2001-01-301-2/+1
| | | | | PR: 24612 Submitted by: David Drum <david@mu.org>
* Add the options of which cron program to run, and specifying flagsdougb2001-01-211-1/+1
| | | | | | | to it. PR: conf/24358 Submitted by: Gerhard Sittig <Gerhard.Sittig@gmx.net>
* Add a sysvipc_enable variable that causes the SysV IPC modules to be loaded.des2001-01-161-0/+10
| | | | Reviewed by: dougb
* Move the process of storing entropy from /dev/random and reseeding withdougb2001-01-141-54/+33
| | | | | | | | | | | | | | | | 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.
* Add a system to save entropy from /dev/random periodically so thatdougb2001-01-111-10/+26
| | | | | | | | | | | | | | | | | | 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.
* Add portmap as a dependency for NIS client and server.bsd2001-01-111-0/+2
| | | | Requested by: gallatin
* Move the syscons configuration to a machine independent rc.syscons. Thejhb2001-01-091-0/+6
| | | | | syscons sh code was identical on both platforms except for whitespace differences.
* In addition to:dougb2000-12-171-30/+35
| | | | | | | | | | | | | | | 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
* Flesh out a simple framework for dependency checking rc.conf enabledbsd2000-12-131-23/+19
| | | | | | services. Simple YES/NO style *_enable services are supported. Reviewed by: obrien
* If portmap is started as a dependancy, echo a notice during boot.bsd2000-12-131-3/+18
| | | | Approved by: obrien
* Set portmap_enable if Amd or running as an NFS server is enabled.obrien2000-12-111-0/+15
| | | | This bites too many systems upgrading from our change in defaults.
* Do a better job of preserving the value rc is called withdougb2000-11-211-1/+3
| | | | | | | in the face of possible corruption by rc.diskless*. PR: misc/21904 Submitted by: Anton Voronin, anton@urc.ac.ru
* On DEVFS machines, the device name database is no use.phk2000-10-221-2/+6
|
* Redirect the stderr of dd to /dev/null so the user doesn't see ratherjkh2000-10-201-2/+2
| | | | | weird dd output on bootup as /dev/random is being reseeded. Also, can't this happen in the background since /dev/random blocks?
* Use dd to better block the data being sent to /dev/random.jwd2000-10-181-2/+2
| | | | | Note: I am not redirecting stdout so that the amount of data being transferred can be seen (22k and 576k currently).
* Style fix only.jwd2000-10-161-3/+5
| | | | | | init 6 vs. /sbin/reboot problem still exists (pr 14829) Submitted by: Doug Barton <DougB@gorean.org>
* Having played with this commit request for a few hours, I'vejwd2000-10-161-13/+45
| | | | | | | | | | | | | | | | | | convinced myself that it's better then what we have, but still not perfect. /etc/rc : Attempt to seed /dev/random with multiple backoffs. /etc/rc.shutdown : Attempt to write the entropy_file. In debugging the above changes, I've run into some inconsistancies... rc.shutdown is run via 'init 6', but does not appear to be run via '/sbin/reboot'. Thus, this set of changes improves life depending on the mechanism used to shut the system down. Submitted by: Doug Barton <DougB@gorean.org> Approved by: markm
* Reseed the random device as early as possible to prevent hangs,markm2000-10-141-14/+25
| | | | | and provide some form of entropy in case there is no seed file to prevent a reboot from hanging unnecessarily.
* "fix" savecore by moving dev_mkdb before it to allow device name sensingache2000-10-121-4/+4
|
* Turn the verbose mode on for dumpon(8).ru2000-10-121-1/+1
|
* Add copyright notices. Other systems have been barrowing our /etc filesobrien2000-10-081-0/+26
| | | | w/o giving any credit.
* Only whack pseudo-terminals into shape if they exist. They mightsheldonh2000-08-211-3/+5
| | | | not yet exist in the DEVFS case.
* After some discussion with markm, back out most of rev 1.221,sheldonh2000-08-211-9/+1
| | | | | | | which really wasn't such a hot idea in retrospect. If the random device isn't available, it probably isn't wanted. If it's wanted, it should be enabled in loader.conf.
* The output of this script got a little broken in rev 1.225, withsheldonh2000-08-181-0/+3
| | | | | | | the output for the linux_enable and svr4_enable stuff "floating in the middle of nowhere". Give them their own section, called "additional ABI support".
* Don't rely on a shell scripts to do the simple job of loadingsheldonh2000-08-181-2/+8
| | | | | | | | | | kernel modules for ibcs2_enable and svr4_enable. Don't rely on a shell script to do the neglibly less simple job of loading a kernel module and running one command for linux_enable. These shell scripts are going away.
* Move the running of the Linux and SVR4 compat bits to the arch independentobrien2000-08-151-0/+17
| | | | | | location. Sponsored by: LinuxWorld frustration
* Add an rc.conf knob "ldconfig_insecure" to disable ldconfig'sjdp2000-08-111-2/+8
| | | | | | security checks. Set the default to NO, i.e., secure. Submitted by: Maxime Henrion <mhenrion@cybercable.fr>
* Improve purgedir():brian2000-08-091-3/+5
| | | | | | | | | Fix leading & trailing space handling Suggested by: ben Handle files beginning with - correctly Don't follow symlinks (cd /var/spool/lock; ln -s /. horror)
* Don't use find(1) before nfs filesystems have been mounted asbrian2000-08-081-1/+20
| | | | | | | | | | it lives in /usr/bin. Instead, locate files manually. Note, only *files* under /var/spool/lock are now deleted rather than everything that's not a directory. I think this is more correct, but if anyone disagrees please feel free to change it. Problem pointed out by: bde
* If the initial attempt to write ${entropy_file} to /dev/random failssheldonh2000-07-241-2/+10
| | | | | | | and the randomdev.ko module is not resident, try to load the module and perform the write again. Reviewed by: markm
* Improve on previous commit:sheldonh2000-07-171-2/+2
| | | | | | | Don't inhibit the trailing newline for entropy-related messages. Try harder to save the seed file on shutdown. Reviewed by: markm
* Add entropy caching. With this, some entropy is cached at shutdownmarkm2000-07-171-0/+14
| | | | | | | | time, and this is used to reseed the random number generator at boot time. NOTE - this has no hope of working if you halt(); you need to execute rc.shutdown to get the entropy stash.
OpenPOWER on IntegriCloud