Commit Graph

321 Commits

Author SHA1 Message Date
dillon
6317d3f43a 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
cb3e63a5df 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
9a86c4ac0d nuke dset from here.
Reminded by:	peter
1999-01-20 12:30:13 +00:00
grog
c7f3fe99f5 Only start vinum if vinum_slices variable is non-empty
Reported-by:	roberto
1999-01-18 03:25:10 +00:00
grog
6efbcbcb34 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
96ce6d18f1 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
6474b1fc45 Added starting of usbd 1999-01-10 22:06:22 +00:00
peter
8c55956ae7 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
a4c805394a 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
f43171a9c1 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
41d54fefd9 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
cabd266b5f Hand me the pointy hat, and make it big. 1998-10-09 17:11:14 +00:00
des
6f3812878d 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
51092d3e4a 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
58c10b70e6 Spaces -> tabs, don't use touch before it's available
Pointed out by: bde
1998-09-16 22:42:56 +00:00
jdp
062e6c5e1b 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
93654ba26b 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
ee7d6940c7 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
0f53e7fd13 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
620892cbb4 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
0cff756e9e Don't try to run ldconfig if it doesn't exist. Useful for elf platforms. 1998-08-24 07:11:48 +00:00
phk
058100a3b6 Fix my blunder in my previous commit here. 1998-08-20 11:22:52 +00:00
phk
feaf4aa784 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
362071b38d 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
a237119559 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
eba67c2b23 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
1f41d6a712 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
d721e2b3d6 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
5240f3f89b 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
1ca8e55226 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
a9a1a193d3 Back out last commit re dmesg.boot 1997-12-09 10:06:49 +00:00
danny
4c28f166a8 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
65aef7d1a9 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
a19b8652a8 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
d559c5385b 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
dbe59c771a Don't redirect "mount -t -o nfs" to null 1997-09-13 09:29:21 +00:00
joerg
809f2cba0a Ooops. Wrong branch, back out previous commit. 1997-08-17 15:02:34 +00:00
joerg
9699e572e3 MFC: rev 1.125, remove old PID files at startup 1997-08-17 14:58:57 +00:00
jkh
ae41ffca9d Back out ld.so.conf change until the question is resolved. 1997-07-13 13:22:15 +00:00
jkh
fc9a411da4 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
95dd51c764 Execute rc.local in a subshell instead of sourcing it.
Requested by:	dima
1997-06-25 11:48:47 +00:00
dima
d2729d8b06 sh /etc/rc.local -> . /etc/rc.local 1997-06-25 03:12:12 +00:00
pst
28055a0cae 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
8540e5edc4 Remove /var/run/* now instead of *.pid 1997-06-04 20:02:57 +00:00
ache
a2252afc62 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
e570793ed1 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
de325e7e15 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
4425a718ba 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
08c46d9893 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
95411dc67e 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
782e5651ed re-enabled: . /etc/rc.${arch}
PR:
Reviewed by:	bruce
Submitted by:
Obtained from:
1997-05-04 22:33:17 +00:00
andreas
13f381141e 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
9a3d5ad940 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
c89f29fa00 Clean up the output a bit. 1997-05-01 05:57:29 +00:00
jkh
560307f103 Bring in rc file changes from -current. 1997-04-27 03:59:19 +00:00
guido
44631e7168 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
e613990e99 Add portmapflags and syslogd flags.
Reviewed by:	jkh
1997-04-01 01:00:35 +00:00
joerg
1a1a6f1dfb 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
0e0dfca0f9 Revert $FreeBSD$ to $Id$ 1997-02-23 09:21:14 +00:00
jkh
ed3bc8d362 Make sure newly created /var/account/acct file is 0600 mode. 1997-01-16 02:18:37 +00:00
jkh
9c0cd3f9df 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
10593ac17a Put dmesg.boot in /var/run instead of /var/tmp
Suggested by: joerg & peter
1997-01-02 18:55:26 +00:00
phk
8494458502 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
473ca665ee 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
9d345ebe87 Add /usr/local/sbin to the rc $PATH. Things like GateD are located there. 1996-12-19 18:06:35 +00:00
adam
e61bcd3b49 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
7a8a58be4b /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
e679774ae5 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
da806beec1 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
fd16524e06 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
7d10046a22 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
2cb6a8da3b 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
1518e656fc 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
3cfb2de220 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
51ba17ad58 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
491514d5d4 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
76076ce562 Move things up a bit to make startup pretty 1996-07-18 19:09:06 +00:00
pst
22009cacab 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
67caa0380a 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
344a8a3d29 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
46ddd9465a Cosmetic tweaks. 1996-06-15 17:04:48 +00:00
ache
c511749bdc Remove obsoleted comment about adjkerntz 1996-05-19 22:30:26 +00:00
jkh
c7b4a02c82 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
e016ce5a76 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
29bc133415 Renamed the relevant PC-Card support files to reflect the newest release. 1996-03-14 18:24:07 +00:00
nate
9456e6d3b0 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
934b5043d3 rpc.yppasswdd instead of yppasswdd 1996-02-23 10:44:49 +00:00
jkh
117e17244d 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
09b9c7fb63 Add an option to start mrouted. Off by default 1996-01-29 08:46:14 +00:00
gpalmer
3c1600fe38 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
4799fe441e 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
c4be547482 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
3a04e4a62b Use absolute path for sendmail daemon or sendmail can't find
itself on SIGHUP.
1995-12-09 19:40:12 +00:00
pst
7c51edece4 remove path in front of kadmind, path already set correctly 1995-11-04 05:03:16 +00:00
nate
acc345f935 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
8cd8c3e7fc 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
d184e70f95 Use back-quotes in echo ...recover.* 1995-10-29 12:43:47 +00:00
pst
9db2eab76d Recover vi recovery files on reboot.
Closes pr misc/556 and others.
1995-10-28 23:32:26 +00:00
jkh
5a484289b9 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
2d56f29ff1 Bring my fixes over from 2.1. 1995-09-19 08:33:43 +00:00
paul
49fd30c915 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
ca9c058375 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
3fe5988fd8 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
08ea34dc4d 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
d1dd213b54 Optionally set the dump device. 1995-06-25 04:01:32 +00:00
rgrimes
c013b560f3 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
7e459a826d 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
c3a50a85b0 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
c82fb22c9c Add -r to rm -f /var/spool/uucp/.Temp/* 1995-04-11 18:36:10 +00:00
rgrimes
8b78b97479 Remove obsolete comments about my-name and my-network.
Have netstart directly source sysconfig so that it stands on its own.
Do not source netstart in rc, run it with sh.

Rework the dangerous /etc/hostname.* so that it uses a variable with
a list of interfaces and a variable for each interface in that list.
The files /etc/hostname.* become obsolete with this change, the
information is now stored in /etc/sysconfig.

Source any /etc/start_if.${ifn} files so they can export things to
netstart (plans for future enhancements in this area.)

Obsolete /etc/defaultrouter, this is now down with $defaultrouter from
sysconfig.
1995-04-11 01:22:24 +00:00
rgrimes
4973479e41 This is a purely cosmetic clean up. Fix many cut and paste problems that
had turned tabs into spaces.
1995-04-09 09:54:51 +00:00
rgrimes
e239b1d184 This is the rc work as provided by pts, I will me makeing some additional
changes to it based upon other outstanding bug reports and commits made
after his work.

Comments:

(a) sysconfig is still used to do all configuration.  I was not going to
    change that out from under you.... a user never need edit netstart
    or rc* unless they're being very weird.

(b) rc.maint has been folded back into rc.  It is just unworkable as
    a separate chunk because of ordering bogosities

(c) netstart does what it says... it starts up enough of the network to
    get up,  it doesn't start every bloody daemon that might talk to a
    socket...  netstart ifconfig's the devices and sets up routing if
    configured to do so.

(d) nfs disks are mounted immediately after netstart completes

(e) syslog is started as early as possible (right after nfs) so that error
    messages can get logged to remote syslog servers properly

(f) named is started (there is an argument that says that named should be
    started before syslogd because if you are the dns server for your domain,
    you'd like named to resolve remote hosts in syslog.conf,  but this is
    a minority case and the trivial workarround is to put the syslog host
    in /etc/hosts or use an /etc/resolv.conf -- why? because you want syslog
    to catch named errors, which is a MUCH more important and likely occurance)

(g) NOW all of the rest of the network daemons such as the time stuff, RPC,
    NIS, NFS, Kerberos and inetd are started

(h) the rest of the generic stuff is done (cron/printer/sendmail)

(i) shared libraries are set

(j) /etc/rc.i386 is run (this does FreeBSD/386 specific stuff like ibcs2,
    xtend, and all of the syscons stuff
    (this is actually started as /etc/rc.`uname -m`

(k) the syscons stuff has gotten a serious cleaning to make it consistent
    with rc conventions

(l) rc.local has had the comments about syscons removed (they are not relevant
    to this file now) and the full name of the kernel has been restored to
    /etc/motd

Submitted by:	pts
1995-03-30 06:26:19 +00:00
ache
08e1bfbc1d Add function keys change setup 1995-03-30 00:01:09 +00:00
jkh
9dbf7fae0f Move the invocation of rc.maint ahead of netstart. This is actually OK
since /var wouldn't be mounted at this point anyway - the mount of NFS
comes after both of them are run.  This closes misc/276.
1995-03-29 03:42:21 +00:00
jkh
0f92e2cf91 1. Add missing -n's to echo lines, closing misc/278
2. Make output of spaces follow conventions used elsewhere.
3. Inform user of a few things being started that were silent before.
1995-03-29 03:35:10 +00:00
wpaul
b8c800fa1a Make syslogd work again: in needs to be started in netstart right
before the rest of the system daemons are brought up and *after* the
network interfaces have been configured.

Also fix one other potential problem: the NIS services need to be started
relavively early since some of the other daemons might need them. The
automounter is a good example: if you use amd with NIS-based maps, you'd
better have NIS running before you start it. :) I think mountd might
need it too, now that netgroups can be read via NIS as well.
1995-03-26 18:18:58 +00:00
jkh
160570ecd8 start syslog earlier
add optional ibcs2 startup
1995-03-24 00:16:26 +00:00
jkh
378cf4a94b Correct a few spelling bogons.
Submitted by:	phk
1995-03-24 00:11:02 +00:00
jkh
ab20587e4f Get around problem of not exporting variables in sysconfig 1995-03-24 00:01:21 +00:00
jkh
e06e373475 rc.netstart -> netstart 1995-03-23 06:42:36 +00:00
jkh
02eff35581 Another pass through our rc files in an attempt to eliminate historical
crufy and generally make all of this easier to understand and modify.
1995-03-23 01:25:19 +00:00
ache
e94e3c360c Almost full syscons setup via rc & sysconfig 1995-03-22 03:29:55 +00:00
wollman
9334c82b9e Change named starting convention to use $namedflags like most other
daemons that take command-line arguments.  Correct /etc/namedb installation
to use the correct files.
1995-03-21 16:44:04 +00:00
jkh
b5251d76fa Begin a long-overdue cleanup of this whole mess.
1. Move all system configuration variables into /etc/sysconfig
2. Adapt other files to use it.
3. Add a host of new variables for micro-managing your system in various
   ways.  For 2.1, /etc/sysconfig will be machine-edited so that the user
   doesn't even have to care at all about the various funny names we picked.
4. Enable dset.  We won't get it debugged if we never use it, and no one
   has said anything negative about it yet, so here goes!
5. Try to use one consistent style throughout.
1995-03-21 15:20:48 +00:00
rgrimes
66f16cc244 Remove extra fi that caused this script to fail during boot. 1995-03-17 17:57:24 +00:00
wollman
ee5c0fa60b Semi-major RC file cleanup:
- Do ntp right
- Move recenrly-added and long-standing junk from rc.local into rc, so
. that rc.local truly is LOCAL.
- Fix named invocation to use the correct boot file location.
1995-03-16 16:58:01 +00:00
jkh
4665b0efea Disable dset for now - Bruce says it hoses the show. 1995-01-26 19:04:29 +00:00
jkh
275daa984d Add dset call to rc file, right after the databases are rebuilt. 1995-01-24 16:49:14 +00:00
ache
25cc9a7d2a timedflags quoted
Submitted by: root@uglabgw.ug.cs.sunysb.edu
1994-12-18 01:21:51 +00:00
ache
957bb604cc Add yet one locale example, this time ISO8859-1 as most common example.
Add reference where find full locales list
1994-12-05 19:46:35 +00:00
ache
f99f2b0a04 Call rc.local with . instead of sh to pass variables
Submitted by: John Capo
1994-11-26 19:25:14 +00:00
smace
5b25614f3a fix if test for rwhod. 1994-11-17 08:28:02 +00:00
phk
083ed2ed48 Only so savecore if people ask for it. 1994-11-07 04:02:26 +00:00
ache
b7a021a0c3 Restore back -i for adjkerntz 1994-11-02 09:43:38 +00:00
ache
8949504822 Remove -i options from adjkerntz call 1994-11-01 16:24:03 +00:00
ache
6dcd32748c Add commented out startup locale setup, needed for some daemons
like comsat
1994-10-30 04:33:57 +00:00
dg
fcb39bbe43 Moved swapon -a to before the fsck. It isn't possible to run fsck on
moderately sized filesystems on 4MB machines otherwise.
1994-10-25 08:23:02 +00:00
pst
32468132f6 Add nfs_client and amdflags 1994-09-29 17:27:46 +00:00
pst
9cd3943f5f Remove elvis editor preserve stuff. We don't have elvis in 2.0 (nor am
I aware of anyone who wants it given that we have nvi).
1994-09-26 16:52:04 +00:00
wollman
2166320c69 Don't pass a filename to kvm_mkdb, it can figure out the correct file
on its own.
1994-09-24 03:42:08 +00:00
dg
12dcb4d689 root must be remounted read/write fairly early in the startup procedure
both for NFS diskless and for VFS LKMs.
1994-09-23 18:02:22 +00:00
rgrimes
05a36683e3 fbtab: Pulled down from Attic, fixed spaces to tabs.
make.conf: Pulled in the following changes that had been commited
to share/examples/etc:
	----------------------------
	revision 1.6
	date: 1994/09/20 22:30:33;  author: adam;  state: Exp;  lines: +3 -3
	BOOTWAIT example converted to milliseconds calibration
	----------------------------
	revision 1.4
	date: 1994/09/19 21:35:28;  author: wollman;  state: Exp;  lines: +7 -1
	Document NO_SHARED_LIBCC_INT.
	----------------------------
	revision 1.3
	date: 1994/09/19 21:28:11;  author: wollman;  state: Exp;  lines: +12 -17
	Install /etc from the same source as /usr/share/examples/etc (mostly).
	----------------------------
	revision 1.2
	date: 1994/09/19 02:05:08;  author: ache;  state: Exp;  lines: +1 -11
	Remove STARTUP_LOCALE, obsoleted now
	----------------------------
	revision 1.1
	date: 1994/09/08 19:08:59;  author: jkh;  state: Exp;
	Add a sample make.conf.  Also document the new X11BASE variable, and
	expand some of the documentation for other entries.
	Submitted by:   jkh
	----------------------------

manpath.config: Pulled down from Attic, and merged share/examples/etc
changes.

rc: Pulled in the following change from share/examples/etc:
	----------------------------
	revision 1.2
	date: 1994/09/19 23:13:37;  author: ache;  state: Exp;  lines: +1 -2
	Remove warning about adjkerntz /var/run file
	----------------------------
1994-09-23 07:16:16 +00:00
phk
04d2e03eb9 nfsiod should be started if this is a NFS-client, not if it is a server.
look for "nfs" in etc/fstab, and start it if we see it.  Not quite perfect,
but better.  mount_nfs should start it, if it isn't running.
1994-09-15 02:21:39 +00:00
dg
c88cce508d 1) adapted to a world without "fastboot" and "fasthalt".
2) updated to work with 2.0/4.4 binaries.
1994-08-21 04:28:44 +00:00
phk
06a57ea0fb check for diskless boot, and remount / RW in that case. 1994-06-06 17:45:37 +00:00
ats
45fc22a9b6 Comment out the startup of the xtend daemon by default. 1994-06-05 16:03:57 +00:00
ache
3719ad1b1a Now rc.serial used for initial setup of serial lines 1994-06-04 00:44:00 +00:00
paul
a514c99f92 Added
if [ -x /usr/libexec/xtend ]; then
          echo -n ' xtend';   /usr/libexec/xtend
     fi

to etc/rc
1994-06-01 17:04:01 +00:00
ache
bde698c68d Path of uucp lock/temp corrected 1994-05-23 11:22:10 +00:00
jkh
8aff1f2614 Fix to handle routed with multiple args from Andy J. Chichak.
This should go into 1.1 Release if it's not too late.
1994-04-25 15:33:12 +00:00
rich
b75048104a Add /usr/X11R6/lib to the ldconfig path if it exists. 1994-03-25 04:58:58 +00:00
phk
5b38d4522c Added tickadj to start of xntpd, this improves performance to nominal. 1994-02-27 15:32:09 +00:00
rgrimes
123fcd5827 Correction so that elvisrecover finds the right files!
>From: chmr@edvz.tu-graz.ac.at (Christoph Robitschko)
Date: Fri, 21 Feb 1992 09:40:35 +0100 (MET)

The last version expected elvis* files in /var/tmp, while elvis puts
elv* files there.
1994-02-21 11:28:45 +00:00
rgrimes
4e228eab16 Move ldconfig stuff to be after nfs mounts. 1994-02-21 03:16:43 +00:00
rgrimes
74e8daf1d1 Put back in elvis recovery stuff, we still ship elvis with 1.1 as a fall
back editor!

Add nvi recovery precedure from man page.

Fix ntpdate echo lines so that it looks pretty (ntpdate spits out 1 line
of output that makes the system boot up look real ugly if you do it
echo -n, so I chaged it to echo, and then added a
echo -n 'starting more network daemons:' so any addition daemon starts
look normal.
1994-02-21 02:47:47 +00:00
chmr
91c5867359 Use find -d to clear /tmp, to stop warnings.
Removed elvispreserve command, nvi does not use it, and it was also wrong
for elvis.
1994-02-02 08:02:37 +00:00
guido
ff6b1e04d6 This is Vixie cron 3.0. This version fixes all known security bugs.
Further it implements crontab -e.
I moved cron from /usr/libexec to /usr/sbin where most daemons are
that are run from rc. That also gets rid of the ugly path crond
used to have in ps(1) outputs. Further I renamed it to cron, as
Paul Vixie likes it and is done by NetBSD.

NOTE VERY WELL THE FOLLOWING:

1) Systems crontab changed. Every users crontab resides in /var/cron
   *EXCEPT* root's. This is a special crontab as it resides in
   /etc. Further it is the *ONLY* crontab file in which you specify
   usernames. See /usr/src/etc/crontab. This is also done by BSDI's
   BSD/386 as far as I know (they provided the patches for it anyway)
2) So you *must* delete root's crontab and reinstall the copy
   in /etc from /usr/src/etc.
   'Must' is to much: the old installed crontab will work but cron
   will also try to 'run' /etc/crontab.
3) Last but not least: cron's logging is now done via syslog. Note
   that logging by cron is done lowercase when it logs about itsself
   and uppercase when it logs user events, like installing a new crontab.
   The default logfile file is the same as before:
   	syslog.conf:cron.*	/var/cron/log

-Guido
1994-01-22 20:44:14 +00:00
ache
c44420a3c0 Move "mount -a -t nfs" *after* network daemons,
must be at least after named & gated for proper name resolution.
1994-01-08 17:49:47 +00:00
ache
21371bb7aa Add warning comment line (rm anything into /var/run) 1994-01-04 18:06:18 +00:00
jkh
00fb881791 Added more robust ldconfig setting in rc, removed redundant ldconfig in
rc.local.
1993-12-30 18:19:18 +00:00
wollman
79666365fd Support for automatically running ntpdate and xntpd. 1993-12-21 21:28:12 +00:00
ache
a1c58d3847 Fix sendmail_flags, long ago it was imported from /etc/netstart
with this bug.
1993-12-21 02:58:15 +00:00
ache
ca6a6367e2 adjkerntz call added with explanation comment 1993-12-17 04:20:30 +00:00
dg
f10da662f6 Moved startup of portmap to be the first network daemon. 1993-12-13 08:28:03 +00:00
rich
1590fae24f allow spaces in $sendmail_flags. 1993-11-30 16:59:27 +00:00
dg
6e7f7f7907 Don't start update daemon; it's now internel to the kernel. 1993-11-25 13:23:46 +00:00
rich
7bb738be3f /var/run is cleared on boot. Rerun 'ldconfig /usr/X386/lib' after
clearing /var/run if /sbin/ldconfig exists.
1993-11-24 05:17:14 +00:00
wollman
515ffb95e6 Added a new flag variable to /etc/netstart, $sendmail_flags, which
gives the flags to be passed to sendmail when it is started.  (If it is
"NO", sendmail is not started.)  Also, always start the portmapper regardless
of the value of $nfs_server; this should prevent the inetd complaints we
have seen from recurring.
1993-11-07 01:19:06 +00:00
swallace
8d4ee708fc Changed -r /fastboot to -e /fastboot. File just needs to exist for fastboot.
Otherwise, doesn't work for non-root owner of /fastboot.
1993-08-24 06:15:36 +00:00
rgrimes
cd245240f1 Removed the foreground/background escape sequences that cause headaches
if you are using a com console or a non pc3 console.
1993-07-19 18:55:38 +00:00
rgrimes
4d641072c1 Initial import of 386BSD 0.1 othersrc/etc 1993-06-20 13:41:45 +00:00