Commit Graph

312 Commits

Author SHA1 Message Date
markm
d9108a4003 Get the order of things right; the keys need to be generated
early to allow entropy to replenish.
sshd must start late to catch the full effects of ldconfig.
2000-02-28 19:54:06 +00:00
shin
af0bb08525 Add IPv6 configuration scripts.
Initial version created by, and kindly much tested by:
	bmah@CA.Sandia.GOV (Bruce A. Mah)

Approved by: jkh

Reviewed by: bmah@CA.Sandia.GOV (Bruce A. Mah),
	Ollivier Robert <roberto@keltia.freenix.fr>
Obtained from: KAME project
2000-02-23 18:05:58 +00:00
nsayer
a45c89719d /dev/vn0b is a character device now.
Approved by:	jkh
2000-02-03 06:06:36 +00:00
green
89bb6f8da7 This is another in Martin Blapp's N-series of mount-related cleanups :)
Changes are:
 - rpc.umntall is called at the right places now in /etc/rc*
 - rpc.umntall timeout has been lowered from two days (too high) to one
 - verbose messages in rpc.umntall have been clarified
 - kill double entries in /var/db/mounttab when rpc.umntall is invoked
 - ${early_nfs_mounts} has been removed from /etc/rc
 - patched mount(8) -p to print different pass/dump values for ufs filesystems.
   (last patch recieved from dan <bugg@bugg.strangled.net>)

Submitted by:	Martin Blapp <mbr@imp.ch>, dan <bugg@bugg.strangled.net>
2000-01-15 14:28:14 +00:00
peter
a0a8eee5b3 Third try.. Avoid filenames with spaces in them.
PR:		15937
Pointed out by:	Koga Youichirou <y-koga@jp.FreeBSD.org>
2000-01-06 14:27:37 +00:00
peter
57bb363351 Missed a filename variable quote in rc 2000-01-05 09:19:27 +00:00
peter
b6fd431387 Quote arguments in vi recover script.
PR:		15901
Submitted by:	KOJIMA Hajime <kjm@rins.ryukoku.ac.jp>
2000-01-05 08:17:18 +00:00
peter
d29a3707c6 Remove kvm_mkdb as it isn't installed anymore. libkvm asks directly
via kldsym(2), and crash dumps use nlist directly (and always have).
1999-12-27 07:43:07 +00:00
obrien
3df5935fa2 Install sendmail.cf into /etc/mail.
The current offical Sendmail Inc. version uses /var/mail/ and when we upgrade
our repository to that version, we will get the change.  It is best to make
the path change in 4.0-R (which may not have the latest Sendmail Inc. version,
than to change in mid-4.x stream when we may upgrade.

Ok'ed by:	Peter (quite a while ago)
1999-12-19 22:05:32 +00:00
ache
2a7d5352ce Call rpc.umntall only if nfs_client_enable, hang occurse otherwise 1999-11-30 03:34:01 +00:00
dillon
e8e6885c6b Finish up umntall support. init now passed an argument to the
rundown script 'reboot' or 'single'.  ISO support (which never
    worked) has been removed from mount_nfs.  mount_nfs and umount
    now use mounttab, which allows umntall to work properly.  The
    rc scripts now call umntall as appropriate.

Submitted by:	Martin Blapp <mb@imp.ch>
1999-11-22 04:23:11 +00:00
ache
ef80f4fe76 Add network pass4 - after all local (/usr/local/etc/rc.d f.e.)
daemons started. Move log_in_vain option there. It is needed to avoid
lot of connections to port 80 logged on production WWW server prior
Apache started from /usr/local/etc/rc.d
1999-11-17 22:38:02 +00:00
nsayer
044d3b94b6 Slight reordering of /etc/rc order: It now goes
...
recover vi
msgs/bounds
update MOTD
rc.{arch}
rc.devfs
rc.local
$local.startup
securelevel

The motive behind this is to delay rc.{arch} as long as possible,
as it loads the screensaver, which kills the splash screen.
But at the same time, it can't be done after rc.devfs, as
that might depend on arch specific actions. rc.local and local.startup
also should come after these, and securelevel must be last of all.
1999-09-24 06:49:00 +00:00
jkoshy
13f995da9e Remove the "vinum_drives" rc.conf knob. According to Greg <grog@lemis.com>
this is no longer the right way to start Vinum unless you are doing some
kind of maintenance, and that's not the sort of thing that would go into
rc.conf.
1999-09-22 06:31:32 +00:00
sheldonh
d8a93d30ec Apply a consistent style to most of the etc scripts. Particularly, use
case instead of test where appropriate, since case allows case is a sh
builtin and (as a side-effect) allows case-insensitivity.

Changes discussed on freebsd-hackers.

Submitted by:	Doug Barton <Doug@gorean.org>
1999-09-13 15:44:20 +00:00
roberto
8e94c274cd This fix adds checking for the existance of the /var/msgs
directory before attempting to create the bounds file.

PR:		bin/13184
Submitted by:	"Stephen J. Roznowski" <sjr@home.net>
1999-09-12 18:13:11 +00:00
imp
e92e244fcc Remove all non-file like things in /var/tmp/vi.recover on reboot. 1999-08-30 03:34:46 +00:00
peter
289c0d262f $Id$ -> $FreeBSD$ 1999-08-27 23:37:10 +00:00
sheldonh
8cec588c44 Style clean-up:
* All variables are now embraced: ${foo}

	* All comparisons against some value now take the form:
	  [ "${foo}" ? "value" ]
	  where ? is a comparison operator

	* All empty string tests now take the form:
	  [ -z "${foo}" ]

	* All non-empty string tests now take the form:
	  [ -n "${foo}" ]

Submitted by:	jkh
1999-08-25 16:01:45 +00:00
peter
29a7535fda Perhaps I should have looked at the whole file rather than just the delta.
Use -eq rather than -ne.

Obtained from: OpenBSD (millert, etc/rc rev 1.104)
1999-08-06 06:22:43 +00:00
peter
512d01cbd6 I don't think `customify' is a real word. 1999-08-06 06:20:19 +00:00
peter
753bd4730c Don't use /tmp/_motd in the aftermath of the chflags(2) revelations.
Obtained from: OpenBSD (millert etc/rc rev 1.102 and hugh)
1999-08-06 06:16:06 +00:00
imp
31a7ff272f Clear flags on psuedo terminals before trying to chmod and chown them. 1999-08-02 05:42:44 +00:00
sheldonh
7cd92321bd Don't allow users to prevent the updating of /etc/motd on machines for
which /tmp is not mounted in MFS, clear_tmp_enable="NO" and
update_motd="YES".

PR:	10005
Submitted by:	Anton Voronin <anton@urc.ac.ru>
1999-06-21 15:59:42 +00:00
brian
2e64be7a5a Ignore the quota.user and quota.group files rather than the
``quotas'' file when cleaning /tmp.
1999-06-01 10:47:53 +00:00
cracauer
a98f80083c Break lines to be < 80 chars.
Submitted by:	BDE
1999-04-02 09:35:34 +00:00
grog
1e7868a058 Add variable start_vinum. If set to YES, it will start vinum and
automagically find all the partitions.  This is to be preferred to the
somewhat emetic usage of vinum_slices and the equally obnoxious 'vinum
read' command.
1999-04-02 07:15:44 +00:00
cracauer
b362db7397 Use new -T switch to turn on immediate interruptibilty in shell
scripts. Also, the ugly 'echo -n' hack to prevent sh from a wrong
optimization isn't needed anymore.
1999-04-01 13:30:29 +00:00
imp
cef8c01351 Add two features:
log_in_vain:
	log_in_vain turns on logging for packets to ports for which
	there is no listener.
    rc.sysctl:
	A generic way to set sysctl values.  It reads /etc/syslog.conf
	and sets values based on that.  No /etc/syslog.conf has been
	checked in yet, and I've not added this to the makefile yet
	until I get more feedback.

Reviewed by: -current, -hackers and bde especially
1999-03-28 20:36:03 +00:00
billf
544adda3ec Split check_quotas into check_quotas and enable_quotas
enable_quotas - use quotas on your system
check_quotas - check for violations on startup

By assuming that a system was neat and without violation before it booted
we can skip a long (and at that point needless) process.

Submitted by:	Alex Perel <veers@disturbed.net>
1999-03-17 04:00:04 +00:00
des
9f1a60059d Fix bogons in previous commit. 1999-03-14 20:26:39 +00:00
des
93ddac1d26 Chown the pty device nodes back to root:tty. 1999-03-14 03:20:22 +00:00
jfitz
1a5c7969f4 Add ${lpd_program} and ${portmap_program} as variables in rc.conf, with
suitable defaults pointing to the FreeBSD-shipped versions.  This will allow
for easier integration of third-party replacements for these daemons.
Reviewed by: Several members of -committers
1999-03-11 16:17:24 +00:00
jkh
6580176f8b Correct various mentions of rc.conf 1999-02-13 05:30:49 +00:00
jkh
e57466a1c3 Use /etc/defaults/rc.conf everywhere, falling back to /etc/rc.conf
as necessary (for half-assed upgrades).
1999-02-10 18:08:16 +00:00
dillon
a99e9a02df Revamp rc.diskless. Split into rc.diskless1 and rc.diskless2. provide
more opportunities for overriding.  Clean up /etc/rc ( remove conf_dir,
    remove startup mount special cases, remove other special cases )
1999-02-09 17:17:18 +00:00
dillon
9b13dcd4be Get rid of $conf_dir 1999-02-09 05:20:46 +00:00
grog
acd7d67b0f Change variable name vinum_slices to vinum_drives to match the variable
we set in rc.conf.

Background: the `vinum read' command has changed.  For a short period
of time, it required the names of the slices on which vinum was
stored.  Now it requires the names of the drives.
1999-01-31 04:28:51 +00:00
dillon
93bf3b92b9 If vfs.nfs.diskless_valid does not exist, the conditional fails
and spews an error message we'd rather not spew.  Fixed.

Submitted by:	Kevin Street <street@iname.com>
1999-01-29 06:18:12 +00:00
peter
da6fac4160 Move reading of rc.conf sooner as requested by Greg. I'm a tad nervous
about this becase that makes it get run *before* the filesystems are
mounted.  If people have added stuff to their rc.conf or rc.conf.local
that uses stuff outside of /bin and /sbin, this will break.
1999-01-26 05:14:36 +00:00
peter
101778f606 The vinum setup tool automatically loads the vinum module if it's needed,
there is no need to duplicate the logic here.

XXX rc.conf needs to be read sooner..
1999-01-26 04:59:43 +00:00
dillon
8b68cdbc6f Finish up /etc/rc adjustments to handle diskless read-only-root booting.
This will be followed up by rc.diskless and documentation.
1999-01-25 18:07:25 +00:00
dillon
f4c4d2c0f1 Introduce rc script for BOOTP 'diskless' boot. Well, not quite diskless
since the kernel must be booted from something ( like a floppy ).  This
    script must occur near the beginning of the rc file in order to support
    read-only NFS mounts, which in turn allows all the BOOTP machines to use
    the same / and /usr.

    The companion rc.diskless script is forthcoming.
1999-01-25 04:40:53 +00:00
jkh
367256e90c nuke dset from here.
Reminded by:	peter
1999-01-20 12:30:13 +00:00
grog
951a9667e5 Only start vinum if vinum_slices variable is non-empty
Reported-by:	roberto
1999-01-18 03:25:10 +00:00
grog
97e8dbce6e Add hooks for starting vinum at boot time. Set the variable
vinum_slices to the names of all slices (block device) which are under
the control of vinum.  The configuration will be read in from each in
turn, starting with the most recently updated.

Reviewed-by:   jkh
1999-01-17 03:32:07 +00:00
asami
bde447d289 Move nologin from /etc to /var/run. This means one less file that has
to be written to /etc.

The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.

Reviewed by:	the committers list (actually an old version)
1999-01-11 09:07:42 +00:00
n_hibma
02472a4767 Added starting of usbd 1999-01-10 22:06:22 +00:00
peter
cd5d3a5df5 We load kld's in preference to LKM's, these do not need the root fs to be
read/write to load.
1999-01-06 14:01:52 +00:00
dillon
3d6f93c551 Reviewed by: cvs-current
Commit changes to rc and rc.local, removing the remaining minimal
    functionality of rc.local into rc and commenting it out of rc.local
    prior to the deletion of rc.local from the CVS tree.
1998-12-12 23:04:21 +00:00
jb
9e5ec90f20 Should be sysctl -n. Yesterday wasn't one of my better days. Doh.
Reported by: Ben Smithurst & Makoto Matsushita
1998-12-11 08:25:12 +00:00
jb
8a08015602 Add a test for hw.machine == i386 before trying to run ldconfig for
legacy aout support.
1998-12-10 08:06:59 +00:00
des
ea04b2f148 Hand me the pointy hat, and make it big. 1998-10-09 17:11:14 +00:00
des
8aeb1f4ecc Remove all references to tickadj(8) from rc, rc.conf and rc.conf.5.
Disable building tickadj(8) by removing util from SUBDIR in the xntpd
Makefile. Note that the sources are still there and tickadj can still
be built and installed by doing:

# cd /usr/src/usr.sbin/xntpd/util
# make all install

There are enough references to tickadj in e.g. the xntpd documentation
(not to mention the sysctl variables it uses etc.) that I don't feel
up to implementing the final solution right now.

Kinda-approved-by:	phk
1998-10-08 18:47:30 +00:00
cracauer
5461367ad8 Put guard shells around stuff started from $local_startup. If you type
SIGINT (C-c), you'll get control passed to the next script even if
the current one blocks signals. The child is not killed, though.
1998-09-30 14:44:57 +00:00
brian
75e7cbc736 Spaces -> tabs, don't use touch before it's available
Pointed out by: bde
1998-09-16 22:42:56 +00:00
jdp
a14a068430 Fix up the boot-time ldconfig handling to deal with dual object
file formats.  I have added a new rc.conf variable ${ldconfig_paths_aout}
which is like ${ldconfig_paths}, but only for a.out shared libraries.

On a "standard" ELF system, the ELF ldconfig path is taken from
${ldconfig_paths}, while the a.out ldconfig path is taken from
${ldconfig_paths_aout}.

On a not-yet-converted a.out system, only the a.out ldconfig path
is set, and it is taken from ${ldconfig_paths_aout}.  If that
variable is unset, /etc/rc defaults it to the value of ${ldconfig_paths},
on the assumption that the system's "/etc/rc.conf" file hasn't been
updated.
1998-09-16 05:42:38 +00:00
sos
b3bc5d421a Make /dev/vga a softlink to /dev/ttyv0 under DEVFS using /etc/rc.devfs
Remove the hack from syscons that added a /dev/vga node in DEVFS
it broke root acces on ttyv0 because dev_mkdb screwed up.
1998-09-14 09:14:46 +00:00
jraynard
03b3b20979 Disable kernel_secure_level unless explicitly set in rc.conf. Previously,
it was enabled unless explicitly unset, creating a pitfall for people
like me who upgraded /etc/rc without upgrading /etc/rc.conf.
1998-09-09 22:27:21 +00:00
cracauer
fd49b92e04 Remove X11 lock files at boot time even if $clear_tmp_enable is not set.
PR:		conf/7366
Submitted by:	Thomas David Rivers rivers@dignus.com
1998-09-07 17:18:36 +00:00
jdp
d166beb76e Explicitly pass the "-aout" option to ldconfig, until I've had a
chance to work out a better scheme to handle the separate
invocations necessary for a.out and ELF.
1998-09-05 04:27:35 +00:00
gpalmer
91d93c9726 Don't try to run ldconfig if it doesn't exist. Useful for elf platforms. 1998-08-24 07:11:48 +00:00
phk
82dd2415b5 Fix my blunder in my previous commit here. 1998-08-20 11:22:52 +00:00
phk
2c8163b83d Add "Mounting NFS file systems" progress indicator
PR:		7605
Reviewed by:	phk
Submitted by	Nick Hibma <nick.hibma@jrc.it>:
1998-08-14 06:49:05 +00:00
brian
652b094a95 Don't blat /var/run and /var/spool/lock *after* network_pass1()
unless /var is nfs-mounted.
This was removing ppps device lock (when ppp's started in
/etc/start_if.tun0 in -ddial or -dedicated mode) and allowing
other programs (such as mgetty) to confuse ppp by playing with
the modem while ppp's using it.

People that nfs-mount /var had better not start ppp in this
way....
1998-08-10 19:53:50 +00:00
nectar
0e82fbcb6c make a bounds file for msgs(1) if there isn't one already
PR:		bin/3023
Reviewed by:	jkh@FreeBSD.ORG
1998-07-28 01:15:12 +00:00
jkoshy
3d7fcf97cd Add rc.conf option to set kernel security level and modify "/etc/rc" to
use this.

Requested by: max, andreas

Note: This change just provides a convenient way to exercise existing
functionality.  Whether `kern.securelevel' is effective in increasing
system security is another issue, and one that has been well thrashed
out in the lists.
1998-06-22 06:34:12 +00:00
phk
cf8ca96070 Cut through the discussions and settle the issue: Everything in /var/run
is blown away at boot.  If sudo or other programs needs directories, they
had better make them in /usr/local/etc/rc.d/mumble.sh

PR:		4138 5619 6793
1998-06-02 11:02:16 +00:00
sos
bc60c8025e ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
joerg
f89c1b3c98 Start syslogd before savecore, so savecore's messages will be logged
properly.  Only users of 4 MB machines might not want it this way (to
prevent accidentally clobbering the coredump), but they are somewhat
in the minority these days.
1998-01-08 17:08:22 +00:00
steve
7be657e8a3 Add a ldconfig_paths variable that specifies the shared library paths
to be given to ldconfig(8).

PR:		5178
Submitted by:	Evan Champion <evanc@synapse.net>
1997-12-27 19:46:54 +00:00
danny
edab3be997 Back out last commit re dmesg.boot 1997-12-09 10:06:49 +00:00
danny
ee28c6d757 Make rc record boottime dmesg to /var/log/dmesg.boot, so the data
is preserved after it scrolls out of the dmesg buffer.
1997-12-09 07:22:04 +00:00
steve
2c2d3b0330 Resurrect a modified version of the /tmp clearing code from rev 1.119.
Enable this by setting clear_tmp_enable in rc.conf to YES.  Beware
there can be serious side-effects of enabling this, so use at you own
risk.

PR:		misc/4982, misc/5054
1997-11-16 12:52:17 +00:00
joerg
dc3fadf213 Unspam rev 1.114 that got spammed when someone commited the rc.conf
changes: drop `savecore_enable' now that our savecore obeyes the
minfree file.
1997-09-21 16:09:48 +00:00
brian
408c12b8a2 Change the not-specified-default for inetd & cron
to "enabled".  This will avoid breaking things for
idiots like me who update /etc/rc without paying
attention and updating rc.conf too.
1997-09-13 21:07:12 +00:00
brian
feaeba35cd Don't redirect "mount -t -o nfs" to null 1997-09-13 09:29:21 +00:00
joerg
5d172ee46e Ooops. Wrong branch, back out previous commit. 1997-08-17 15:02:34 +00:00
joerg
84fcbd4f79 MFC: rev 1.125, remove old PID files at startup 1997-08-17 14:58:57 +00:00
jkh
20d1b8751a Back out ld.so.conf change until the question is resolved. 1997-07-13 13:22:15 +00:00
jkh
5a0e63af19 Use /etc/ld.so.conf as a library path override, if it exists.
Submitted by:	Hans Zuidam <hans@brandinnovators.com>
1997-07-11 14:52:52 +00:00
pst
11cc829fae Execute rc.local in a subshell instead of sourcing it.
Requested by:	dima
1997-06-25 11:48:47 +00:00
dima
88fd3e3090 sh /etc/rc.local -> . /etc/rc.local 1997-06-25 03:12:12 +00:00
pst
8c2215a208 Add cron_enable and inetd_enable flags to rc.conf.
WARNING: don't update rc and forget to update rc.conf, or you won't be
able to telnet back into your box after a reboot.
1997-06-18 16:01:19 +00:00
ache
2414e1ba9b Remove /var/run/* now instead of *.pid 1997-06-04 20:02:57 +00:00
ache
681e15a00e Restore /var/run/*.pid cleaning, gated already moved off the way
and innd store its .pid inside its own directories
1997-06-04 19:20:04 +00:00
ache
7e94f25081 Back out /var/run/*.pid cleaning since some programms (like innd)
use .pid to detect crash
1997-06-02 10:21:12 +00:00
ache
51bc6497ca Add rm -f /var/run/*.pid to prevent random process killing due to
picking old .pid file
1997-06-01 23:33:00 +00:00
jkh
eca8c2300f Neaten up some things which were inconsistent, add a few more flags
to things which need them, general cleanup.
Submitted by:	Brian Somers <brian@awfulhak.org>
1997-05-19 07:46:51 +00:00
jkh
7a6376d97f Use full path to sendmail for security reasons.
Submitted by:	Ollivier Robert <roberto@keltia.freenix.fr>
1997-05-07 12:35:03 +00:00
jkh
07cd08d705 Add inetd_flags and way of passing ipfw a configuration file
(if firewall = "somefilename").

Fix typo fixes and URLs which were accidently nuked out of this
file (submitted by: soil@quick.net via PR#3501).

Submitted by:	"Danny J. Zerkel" <dzerkel@phofarm.com>
1997-05-05 07:08:31 +00:00
andreas
a9a4dc76d0 re-enabled: . /etc/rc.${arch}
PR:
Reviewed by:	bruce
Submitted by:
Obtained from:
1997-05-04 22:33:17 +00:00
andreas
55da57aff1 Fixed sourcing of /etc/etc.${arch}/rc.${arch} on startup.
PR:
Reviewed by:
Submitted by:
Obtained from:
1997-05-04 12:50:33 +00:00
jkh
af4383e1b6 Update the etc world from RELENG_2_2 which is now more up-to-date
(gotta get myself -current again, this is a drag).

Also-fixes-problems-noted-by: Wolfgang Helbig & Joerg Wunsch
1997-05-03 11:22:17 +00:00
jkh
925f2cb7ee Clean up the output a bit. 1997-05-01 05:57:29 +00:00
jkh
7be3f36014 Bring in rc file changes from -current. 1997-04-27 03:59:19 +00:00
guido
c0dad1ff8d Make a sysconfig variable controlling if teh kernel should accept
nfs requests from non-privileged ports.

Change mountd such that it does never set this variable, but only clears
it when run with -n. Also document this in the man page.
1997-04-09 20:17:15 +00:00
pst
9827ab07c4 Add portmapflags and syslogd flags.
Reviewed by:	jkh
1997-04-01 01:00:35 +00:00
joerg
55f958f523 Having two knobs until you get a kernel core dump saved is silly.
Leave dumpdev, but kill the savecore variable.  Thus, it's still off
by default, but all you need is enabling dumpdev now.

phk's old argument that savecore might inadvertendly fill up the disk
no longer counts, savecore now correctly obeyes a `minfree' file, and
we ship our systems with such a file that even has a reasonable
default.
1997-03-16 15:26:34 +00:00
peter
f173325ac8 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
jkh
45a95a8306 Make sure newly created /var/account/acct file is 0600 mode. 1997-01-16 02:18:37 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
phk
813b0dd9e3 Put dmesg.boot in /var/run instead of /var/tmp
Suggested by: joerg & peter
1997-01-02 18:55:26 +00:00
phk
368dad5d4b Now that uptimes run into months on a regular basis, I often find myself
wondering what the hw-config of a machine is, and the logs have been
rotated many times since reboot already.

Added:
	/sbin/dmesg > /var/tmp/dmesg.boot
to /etc/rc

2.2 candidate
1997-01-02 16:28:33 +00:00
joerg
2a3b477492 Extend the set of ptys to chmod at boot time.
Closes PR # conf/1957: not all perms of ptys...

Submitted by:	gurney_j@efn.org (John-Mark Gurney)
1996-12-23 00:32:15 +00:00
joerg
559ebc11e1 Add /usr/local/sbin to the rc $PATH. Things like GateD are located there. 1996-12-19 18:06:35 +00:00
adam
46e1202181 start rpc.statd for nfs_server case.
add warning and commented out line for rpc.lockd
1996-11-13 19:04:31 +00:00
joerg
b9f3f4db00 /dev/vn0b is supposed to be a block device, so don't test(1) whether
it's a plain file.

Submitted by:	brian@awfulhak.demon.co.uk (Brian Somers)
1996-11-03 14:41:58 +00:00
peter
78f24241f2 Update to use the recommended recovery procedure from nvi-1.76.
This is a lot more robust and handles errors a lot better.  It also cleans
up stray, hopeless, or unmodified files rather than leaving them there
forever.
1996-11-01 09:45:51 +00:00
joerg
ff0d691965 Correct the startup sequence for syslogd:
. crate the symlink for /dev/log if required, then
. remove the old socket (savecore might have already created it
  accidentally), then
. start syslogd.

(Btw., our test(1) misses an option to test for a socket.)
1996-10-28 08:28:02 +00:00
wpaul
d7c6b63ef7 Add hooks for rpc.ypxfrd in /etc/sysconfig and /etc/rc. Also change
a couple of benign cases of 'yppasswdd' to 'rpc.yppasswdd.' (Like
rpc.yppasswdd, rpc.ypxfrd should only be run on NIS master servers.)
1996-10-21 20:09:30 +00:00
peter
04838bc55a Add a -p to the amd invocation, it's not optional since we are expecting
the pid on stdout for /var/run/amd.pid.  The example in sysconfig had
forgotten -p anyway...
1996-10-08 20:02:57 +00:00
peter
c9ea7e4fc9 Some tweaks after having run a YP-only system with quotas:
- split the "starting network daemons" in half.
 - The first half starts things necessary to get full name service up.
 - The quota check etc moved from "before network" to after the name
   services are running.  quotacheck does a while(p=getpwent()) which
   isn't real good without YP running...
 - moved rwhod a little later to put it with the other network stuff.
 - deferred inetd a tad so that it's after ldconfig and dev_mkdb,
   otherwise you get logins before you're ready.

Unresolved: named is started before ypserv/ypbind still, but named does
a while(s = getservent()) and while (p=getprotoent()) to suck in the
entire database into memory.  This means you cannot have a "+" in the
/etc/services or /etc/protocols files or you get a long hang at boot.
1996-10-08 20:00:44 +00:00
imp
955d71703a Fix a possible syntax error in rc when swapfile isn't defined at all.
This can happen when the user is upgrading from an older version and
his/her sysconfig file doesn't have swapfile defined to be NO in it.
1996-09-22 06:36:49 +00:00
phk
59f8ce79a3 Add support for shlibs in /usr/lib/compat that the linker will not find
at compile time, but ldd will at runtime.
1996-09-02 13:10:02 +00:00
jkh
2da1db6ea8 Add a new "swapfile" variable so that you can add a file as a additional
swap as the system is coming up.
1996-08-21 23:15:37 +00:00
jkh
b5f1e4c096 Edit this for consistency's sake (though it's syntactically identical).
Noticed-By: "William A. Gill" <bill@duchess.wagill.com>
1996-07-30 06:28:59 +00:00
pst
3b55c38a3d Move things up a bit to make startup pretty 1996-07-18 19:09:06 +00:00
pst
4203d74266 Start sendmail after ldconfig. Put the nail in the coffin on misc/1346.
Submitted by:	Hiroharu Tamaru <tamaru@ap.t.u-tokyo.ac.jp>
1996-07-13 17:27:39 +00:00
pst
1e72a3c651 Start vi.recovery processing after ldconfig.
Closes misc/1346 which has bitten me more times than I care to remember.
1996-06-24 19:00:28 +00:00
joerg
f922895864 Add a few hints about the cleaning policy of /tmp, including an example
(commented out) for how to purge it regularly.
1996-06-22 13:05:20 +00:00
jkh
a0d4b3885b Cosmetic tweaks. 1996-06-15 17:04:48 +00:00
ache
92f8f3c6af Remove obsoleted comment about adjkerntz 1996-05-19 22:30:26 +00:00
jkh
bef1563d1c Nuke the nasty cleaning of /var/run after netstart starts - it nukes
gated's pid file, for one thing, and is just generally BAD.
1996-05-08 09:25:57 +00:00
asami
52ac890686 Bring in ccd support.
Call ccdconfig before swapon if /etc/ccd.conf exists.

Obtained from: NetBSD
1996-05-03 05:37:04 +00:00
nate
36dc90ccd8 Renamed the relevant PC-Card support files to reflect the newest release. 1996-03-14 18:24:07 +00:00
nate
38eb2b3686 PC-CARD hooks. Someday it will actually enable working code. :)
Reviewed by:	phk
Submitted by:	Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp> & BSD Nomads

I re-wrote alot of this, but the ideas are based on the code from the
most recent pccard-snapshot.
1996-03-12 15:39:26 +00:00
adam
8b3d623d79 rpc.yppasswdd instead of yppasswdd 1996-02-23 10:44:49 +00:00
jkh
50e472b749 Close PR conf/589 - amd should only evaluate ${amdflags}.
While I'm at it, add a commented-out sample amd flags line to sysconfig
and drop a sample amd.map file in this directory for easy copying.
I know that this file's contents are highly site-variable, but the one I've
chosen for an example is also the one I've seen on 99.9% of the amd-using
sites I've visited.  I think it's a fair default.
1996-02-09 12:20:40 +00:00
gpalmer
584809c422 Add an option to start mrouted. Off by default 1996-01-29 08:46:14 +00:00
gpalmer
639086d7c7 Add (at long last) an option to say if you want to run the printer
daemon (lpd) or not. Set to run it by default.
1996-01-28 08:08:37 +00:00
graichen
b447bf3998 added the "-p" option to amd so that it writes it's pid to
/var/run/amd.pid and added the "-l /var/log/amd.log" option there too

added an entry for the "rotation" of /var/log/amd.log to newsyslog.conf
1996-01-16 08:04:06 +00:00
jkh
27bb84eb65 Go to new scheme for local_startup variable. Now one can specify multiple
directories to check in looking for port startup scripts.  The specific gunge
for apache httpd, gated and pcnfsd in /etc/sysconfig and /etc/netstart is
gone now.  Note that pcnfsd's troubles aren't necessarily over (and probably
why NetBSD brought it into their sources) - anyone adding pcnfsd will STILL
have to tweak /etc/sysconfig in order to set the new variable
`weak_mountd_authentication' to YES.  The flags to mountd are directly affected
by pcnfsd's requirements for non-root mounts, unfortunately! :-(
Submitted by: paul & jkh
1995-12-28 01:24:04 +00:00
ache
68bd73389a Use absolute path for sendmail daemon or sendmail can't find
itself on SIGHUP.
1995-12-09 19:40:12 +00:00
pst
d2205dfe02 remove path in front of kadmind, path already set correctly 1995-11-04 05:03:16 +00:00
nate
16af6306ac Don't have ldconfig look in /usr/gnu/lib since it was removed before 2.0R. 1995-11-01 16:53:25 +00:00
ache
e702f25f2b If accounting becomes enabled and /var/account/acct
not exist, touch it, or accounting is never started
(it must be pre-existen file).
1995-11-01 00:22:45 +00:00
ache
cc116c7cb7 Use back-quotes in echo ...recover.* 1995-10-29 12:43:47 +00:00
pst
4990780520 Recover vi recovery files on reboot.
Closes pr misc/556 and others.
1995-10-28 23:32:26 +00:00
jkh
45d3cf3f79 local_startup=/usr/local/etc/rc.d
[ As suggested by Satoshi - rc.local.d was pretty redundant under /usr/local;
  duh! :-)]

[ -f /etc/rc.local ] && sh /etc/rc.local
For backwards compatibilty with non-executable rc.local files.  Sorry, Bruce!

Submitted by:	asami & bde & jkh
1995-09-19 10:19:44 +00:00
jkh
510222472c Bring my fixes over from 2.1. 1995-09-19 08:33:43 +00:00
paul
36d9e35218 Removed startup code for pcnfsd and apache. These don't even exist
in FreeBSD and should never have got in here.

Removed hard-coded /etc/rc.local.d hacks and implemented a more flexible
solution.

Added a local configuration area to sysconfig.
1995-09-18 19:17:14 +00:00
jkh
29f0a0da6d Add support for /etc/rc.local.d directory, ala SYSV. If the purists
don't like it, they don't have to use it.  The check makes sure that
/etc/rc.local.d exists before attempting to do anything with it.  Now
packages will be able to add their startups as /etc/rc.local.d/<pkgname>.sh
in order to get local startup behavior.  Maybe we can stop adding
knobs to /etc/sysconfig for ports/packages now?
Submitted by:	wollman & jkh
1995-09-18 07:38:18 +00:00
jkh
875a4ab676 Add checks for pcnfsd (flag to mountd must be added in this case)
and Apache httpd, so a user can be brought up to speed quickly.
1995-09-14 02:44:49 +00:00
wollman
7d4b8f84f0 Not sure if Rod is still working in these or not, so here goes.
Add nis_ypsetflags sysconfig entry and appropriate code in rc to call
ypset if needed.  Should probably automatically add `-ypsetme' to ypbind
flags if this is set.
1995-07-20 16:26:26 +00:00
bde
f0f95a88b6 Optionally set the dump device. 1995-06-25 04:01:32 +00:00
rgrimes
80a0428f98 The ``mount -a -t nfs'' should never have been backgrounded. If you
have non-critical nfs volumes in /etc/fstab they should have option bg
on them.  The behavior of the system is more tuneable this way, and
allows a slow mounting /usr over nfs to work.

Submitted by:	bde
1995-05-15 19:50:59 +00:00
dg
138edd5273 Fixed incompleteness that would allow dirty filesystems to get mounted
when the single user shell was terminated. These changes disallow mounting
or R/W upgrading filesystems that are dirty unless "-f" (force) option
is used with mount. /etc/rc has been modified to abort the startup if
one or more non-nfs partitions fail to mount.

Reviewed by:	Poul-Henning Kamp, Rod Grimes
1995-05-15 08:39:37 +00:00
jkh
d86322bd5b Document the fact that almost all the user configuration stuff is now
in /etc/sysconfig, per Luigi's suggestion.
1995-05-11 21:11:17 +00:00
ache
b043f23fb9 Add -r to rm -f /var/spool/uucp/.Temp/* 1995-04-11 18:36:10 +00:00