Commit Graph

153 Commits

Author SHA1 Message Date
mrg 4c04041950 add "screenblank" support. 1998-04-07 04:47:33 +00:00
lukem cb545a7ee4 send ntpdate output to syslog rather than stdout (with -s).
suggested by "Soren S.  Jorvang" <soren@t.dk>
1998-02-24 00:24:45 +00:00
lukem 63e548eb1d exclude 127.127 servers when automagically determining ntpdate hosts 1998-02-23 05:20:52 +00:00
lukem 8f59ce8e35 include rc.subr and use appropriately 1998-01-26 12:02:43 +00:00
veego 16cc8254d4 Move ipnat from /etc/netstart to /etc/rc after /usr is mounted. 1998-01-24 19:12:54 +00:00
perry 30e556f4e5 Fix pr 4587 (from Matthias Scheler) -- pause slightly after xfs starts. 1998-01-09 21:57:17 +00:00
mrg d2cfb19c3d print a warning if no swap devices are configured and "no_swap" is not YES. 1997-11-23 04:17:57 +00:00
jonathan 6ba565c4d3 Add options to rc.conf and rc to start xfs (x font server) and xdm.
Add entries to rc.conf.5.
While we're here, note that the domestic kerberos damons are still
Kerberos IV, not kerberos version 5.
1997-11-11 02:28:58 +00:00
drochner a06997e6bd Replace the (slightly broken) check to avoid double mounting of
filesystems by a correct one. (too bad that there was no agreement
about a mount option doing the same...)
Introduce a new rc.conf variable to mount user-defined filesystems
early in startup (eg for syslog, crashdumps, ...).
1997-10-10 09:37:54 +00:00
lukem cb57cd9636 add $ipmon and $ipmon_flags, to control startup of ipmon(8) 1997-10-07 12:11:48 +00:00
drochner a14fe6a191 fix an rc.conf flag check which was broken with the "checkyesno" changes 1997-09-12 10:36:04 +00:00
drochner 52157361c2 avoid to mount /usr twice if LKM load already did it 1997-09-12 09:53:08 +00:00
mikel 8cd518d0fd no more DEFAULT for $ntpdate_hosts; from Geoff Wing in PR bin/4073 1997-09-08 02:34:44 +00:00
veego d1307e8424 Curt, what is in rc.func ?
I only see rc.subr so I renamed rc.func to rc.subr.
1997-08-29 09:33:34 +00:00
cjs c3b0e18db8 Split rc.conf variables for starting programs into two: an on/off
switch and a set of flags. Get rid of DEFAULT flags entirely. Print
warnings if on/off switches are not set, or are set incorrectly.
Add a shell function to simplify this on/off switch testing.
1997-08-29 02:24:04 +00:00
thorpej 5b004f0ce6 ldconfig processes /etc/ld.so.conf internally; run it without cat'ing
the contents into an argument vector.
1997-08-26 19:35:33 +00:00
cjs d10a9ab09b Move ntpdate before `starting network daemons' to get cleaner output
during boot. Besides, it's not a daemon anyway.
1997-08-05 03:32:51 +00:00
perry 2a376043c7 add apmd to /etc/rc and /etc/rc.conf per Lennart Augstsson in pr 3313 1997-08-03 22:24:20 +00:00
perry e53ae14bdd Fix boot time vi recovery as reported by NAKAJIMA Yoshihiro in pr-3430
Really weird bug. On inspection, the shell code in rc looked fine, but
when tested, sure enough, the semantics of the shell were not what I
thought they were. Very unexpected to me, and obviously to the
hundreds of people who must have read those lines without seeing that
they were broken.
1997-07-31 03:35:39 +00:00
veego fb68fae55e Move savecore up before named to get a dump on low memory systems and
move 'mount -a' between yp and nfs daemons.
1997-07-15 11:19:20 +00:00
drochner 4e045b6b43 Take 2 to get the mount order "right", taking care of possible LKM
loads before netstart this time.
LKMs can be loaded at 3 strategic places in /etc/rc - before netstart,
before "mount -a" and after all. "before netstart" works only if
the /usr filesystem is local (or on NFS, if root is too).
An additional field ("when") in lkm.conf controls when the LKM is
loaded.
1997-07-14 11:55:44 +00:00
veego a6fe27dced Back out the last two commits for now till we find a better way to fix
the mount problems.
1997-07-11 12:01:06 +00:00
veego 6553fa7064 rc.lkm needs /usr/bin/ld, so try to mount it with -t nonfs before rc.lkm. 1997-07-11 09:06:59 +00:00
drochner d9dfde6362 Mount only "/" at the beginning (instead of all non-NFS filesystems).
This makes that the ordering of fstab is used for mounts which is
a) more intuitive and b) needed if {mfs,union,...} on top of NFS
is wanted.
1997-07-10 13:43:14 +00:00
thorpej 650e452081 Before disk checks are performed, do a "swapctl -A -t blk" so that
block-type devices are available during disk checks, which may consume
large amounts of memory if large file systems are present.  Once "critical"
file systems (e.g. /usr and /var) are mounted, perform a "swapctl -A -t noblk"
to enable swapping on any swap files that may be listed in /etc/fstab.
1997-06-25 23:30:28 +00:00
mrg 277b52f964 use swapctl instead of swapon 1997-06-12 15:18:58 +00:00
cjs 0dd1ac7fc9 Make xntpd put its pid in /var/run/xntpd.pid. 1997-05-11 05:08:16 +00:00
scottr bf904a4665 Spawn a separate shell for netstart, making sure to check the return value
and exit with error if appropriate.
1997-04-29 04:58:38 +00:00
perry 36b2c99667 Add support for an ntpdate_hosts variable.
settings:
	NO:	don't run ntpdate on boot
	DEFAULT:extract a list of hosts from /etc/ntp.conf
	otherwise, a list of hosts to poll with ntpdate
1997-04-27 23:17:56 +00:00
perry 889bcd37bc make motd update conditional on an rc.conf variable (update_motd), and
move it before interactive logins are possible (just in case).
1997-04-23 01:24:22 +00:00
perry 8c70b4d638 move last items from rc.local to rc; rc.local is now actually for local stuff. 1997-04-19 03:10:57 +00:00
cjs ec30dbdca7 Added mopd. 1997-03-17 00:02:02 +00:00
mycroft 2564c9e659 When displaying the names for statd and lockd, include the `rpc.'. 1997-03-12 19:21:26 +00:00
mycroft 773a52a313 Add . GC , which isn't used. 1997-03-12 19:15:16 +00:00
mycroft 0e6463ba0a Do the DEFAULT thing with mountd_flags. Don't output an extra
newline for statd and lockd.
1997-03-10 10:15:11 +00:00
mycroft 40202c2514 Minor cleanup. 1997-03-10 09:34:59 +00:00
mycroft 2069c0127b If foo_flags is DEFAULT, run the program with a default set of flags. Most
users will use this, and therefore will never have to worry about flags
changing between releases.  It's also a bit less error-prone.
1997-03-10 09:16:13 +00:00
scottr ba3dca973c Add configuration flags for lockd/statd, and start them if an
NFS server or client is configured and the flags are not NO.
1997-03-10 06:32:37 +00:00
mikel ef538c3176 cleanup Lite-1 merge 1997-02-15 10:02:07 +00:00
mrg ffabdc3a7a oops; use $savecore_flags. from kilbi@rad.rwth-aachen.de 1997-02-07 08:59:18 +00:00
mrg 3b98afb4c5 move start-time configuration from netstart, rc, rc.local into
the new /etc/rc.conf.  this also includes the following changes:

	netstart:  ifaliases now includes a netmask, to ensure
		   aliases work.

	rc/rc.local:  make _everything_ based on configuration
	in rc.conf.  also move things around such that DNS and
	YP are started early enough that other daemons needing
	their services also exist.  move ldconfig from rc.local
	here, and also make it use /etc/ld.so.conf if it exists.
	run /etc/rc.lkm if it exists, a boot time.
1997-01-05 12:01:54 +00:00
mrg c82951e68c add inetd_flags, mostly from <jbernard@tater.Mines.EDU> in pr#2987 1996-12-04 12:55:33 +00:00
mrg b0119cdb4c add dhcpd startup; disabled by default 1996-10-03 07:11:35 +00:00
tls 1986672399 move rpc daemon startup to after network startup so that if the machine is a DNS server and wants to resolve via itself, one doesn't have to wait for all the DNS queries to time out as each rpc daemon starts. This was particularly ugly with mountd. 1996-08-26 06:02:21 +00:00
thorpej 7143a7612e Quote the YP daemon flags variables. 1996-08-09 16:07:42 +00:00
thorpej 2dfaa56a79 Change how the YP daemons are started. Previously, ypbind was always
started if the directory /var/yp exists.  Now, ypbind, ypserv, and
rpc.yppasswdd are started like other daemons; there are flags variables
for these programs.  To disable them, set the variables to "NO", otherwise,
their contents are passed as flags.
1996-08-09 10:29:44 +00:00
mrg 59b7f344f3 add note about why we use /usr/sbin/sendmail. 1996-03-22 03:20:53 +00:00
mrg 014cccd163 now that sendmail supports SIGHUP, call sendmail with full path. 1996-03-22 00:44:59 +00:00
thorpej 8f1fa9720d Add $mrouted_flags to netstart and use it in rc to start mrouted in a manner
similar (well, identical, really) to how $routed_flags is used to start
routed.
1995-12-30 01:30:03 +00:00
thorpej f82fcbac80 New-style RCS ids. 1995-10-08 18:11:40 +00:00
jtc 7fd0d8d882 fix typo in comment 1995-09-16 15:29:20 +00:00
thorpej 040975e646 Conditionally start rbootd like rarpd and rpc.bootparamd, and disable
it by default.
1995-09-02 17:30:41 +00:00
thorpej cc833cb3e2 Fix typos in two comments. 1995-09-02 17:19:22 +00:00
thorpej 4e7f37f974 Configure ccd devices before the filesystem checks, as suggested by
Thomas Eberhardt in PR #1408.
1995-08-27 20:30:53 +00:00
briggs bf98208622 Actually pass all the arguments to amd that we meant to. Reported by
Dave Leonard (D.Leonard@pleiades.newcastle.edu.au).
1994-11-04 13:27:32 +00:00
mycroft 97388e6c43 Create an empty mountdtab after removing it, to avoid getting a warning
from mountd on startup.  Change $name_server to $named_flags.
1994-09-16 23:38:01 +00:00
deraadt f8a2565cb6 always check quotas (there is no reason not to try) 1994-06-27 21:14:19 +00:00
deraadt 5759882532 quotas file(s) changed name in 4.4-lite 1994-06-24 07:51:59 +00:00
cgd 5a9c3f0a89 if install will do the trick, why not use it\? 1994-06-18 06:38:54 +00:00
mycroft 5b65b3e00b Update nfsd and nfsiod invocations. 1994-06-08 18:47:45 +00:00
jtc 7bb3055523 Move building of link editor cache from rc to rc.local, like in SunOS,
because the end user may need to add local directories to be searched.
And rc.local is a much more appropriate place for local changes.

I emailed pk on this matter, and he said that the overhead of not
having linker hints for the daemons started by rc would not be
significant.

This change also closes bug #217.
1994-06-03 05:02:10 +00:00
mycroft fdc5a55aba Attempt to make sure /var is mounted before futzing with it. 1994-05-29 19:10:22 +00:00
jtc e846c118d8 Move code that cleans /var/run so that it is before the automount deamon
startup puts its pid file there (This addressess most of bug #217).
1994-05-29 03:37:33 +00:00
cgd 464e792795 add ttyflags -a, early on in rc. 1994-04-10 06:42:40 +00:00
cgd 31d422a3a0 keep amd pid in /var/run/amd.pid 1994-03-28 05:47:28 +00:00
cgd 3136bd9571 punctuation 1994-03-18 00:58:20 +00:00
cgd 4523219375 kill uucp lock files. from Mike Long <mike.long@analog.com> 1994-03-17 23:22:40 +00:00
cgd e0ade9fbf5 slight change to the way AMD is invoked, to make it sensible for most uses 1994-03-14 04:14:13 +00:00
cgd 3ed8e27e29 make booting comments a bit cleaner 1994-03-09 04:02:58 +00:00
cgd b09f56e8b1 automatically enable accounting and rotate logs 1994-02-26 03:29:23 +00:00
cgd cf27654269 don't delete preserve files! 1994-02-01 00:36:34 +00:00
mycroft b6537fd765 Do the right thing for nvi. 1994-01-30 17:15:52 +00:00
jtc 645e8cd8d0 The cron daemon now lives in /usr/sbin 1994-01-13 18:43:50 +00:00
mycroft ed3483e8c2 Add bootparamd gunk. 1994-01-10 16:57:24 +00:00
mycroft 59af92f761 Add rarpd gunk. 1994-01-10 16:43:06 +00:00
jtc 35a219c2bf The cron daemon has been renamed from crond to cron. This name change
is from Vixie Cron 3.0, to make it like the 4.3BSD cron.
1994-01-05 21:35:25 +00:00
deraadt 2fa59a6b60 start amd if requested
do nfs mounting after mountd has been started (so two machines can cross-mount
nfs from each other, else they hang if booted simultaneously)
1994-01-05 06:34:56 +00:00
deraadt 61b54a3379 initialize rpc services in proper order 1993-12-16 04:02:23 +00:00
mycroft d1da713410 Use `.' to run rc.local, rather than starting another shell, so that variables
from netstart are passed on.
1993-12-15 07:24:31 +00:00
cgd 73b217910b fix comment, add check 1993-12-01 01:38:21 +00:00
mycroft eafa1693d9 Put ldconfig later so it doesn't get wiped when reaping /var/run. 1993-11-26 20:11:44 +00:00
mycroft 3d350fb581 Build ld.so.hints on each boot. 1993-11-21 21:06:46 +00:00
cgd 609bf6154c more flags 1993-11-17 09:20:43 +00:00
cgd 1919837079 quote sendmail_flags test, from Patrick Bridges <patrick@buffy.cs.msstate.edu> 1993-11-17 09:19:35 +00:00
cgd 90a52de601 (1) clean up lots (rename fooflags -> foo_flags, etc.)
(2) implement suggestion made by Garrett Wollman of "sendmail flags"
	to set flags passed to sendmail and/or turn it off
(3) document origins of variables
1993-11-07 10:36:48 +00:00
cgd ae97749f6d never rotate accounting logs, and turn on accounting the way done in net/2 1993-10-20 00:13:43 +00:00
mycroft 3302edb38a Use `-e fastboot', not `-r fastboot'. 1993-09-05 23:12:36 +00:00
deraadt 5d5fd66358 it's clear that mountd started from inetd doesn't work 1993-09-01 09:43:33 +00:00
brezak 6ce6685814 mountd is now started by inetd. 1993-08-25 02:44:11 +00:00
brezak 70f813217a Don't start rwalld - now started by inetd. 1993-06-11 00:39:31 +00:00
cgd 662c7885fb prune dirs rm'd when cleaning tmp 1993-05-03 10:52:21 +00:00
cgd ab920a40d0 turn on accounting if /var/account exists 1993-05-03 04:19:40 +00:00
cgd b740fbac92 bsd->netbsd 1993-04-28 06:37:52 +00:00
cgd 7f6ef807e1 new kernel is bsd 1993-04-28 05:39:57 +00:00
glass f5b725b323 fixes for nfs_client, nfs_server division. 1993-04-10 20:15:30 +00:00
cgd 011708d80c always run portmap 1993-04-10 18:01:31 +00:00
glass 9453ddc86e mountd's log of who has what filesystem mounted should not persist across
reboots.
1993-04-10 11:24:37 +00:00
cgd 0ce19b94e1 rwalld should be run *after* the portmapper. 1993-04-09 19:13:21 +00:00
cgd 3c9f6bb2b3 screwed it up again... = vs ==. 1993-04-05 04:01:06 +00:00
cgd 5a29d10aff screwed up comparison for rwalld and rwhod... 1993-04-05 03:55:14 +00:00