Commit Graph

40 Commits

Author SHA1 Message Date
lukem 5c1b0ec207 Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf.
This allows us or a user to change the configuration file method in
one place - rc.subr - without having to edit all of the rc.d/* files.
2000-05-13 08:45:06 +00:00
lukem d934c3b536 only support reload as an extra command; there's too much special case
code that needs to be implemented to make this script totally replicate
what /usr/sbin/ndc does.
2000-05-13 03:46:42 +00:00
itojun 4bc21c2fb4 do not let 127.0.0.0/8 leave the node. based on RFC1122. 2000-05-09 10:49:26 +00:00
tsarna fff5c01493 This was doubly borken... 2000-05-07 19:03:25 +00:00
tsarna fe4377f98c Only warn on non-default old nfsiod args. 2000-05-07 02:04:20 +00:00
itojun 78565052f1 do not cope with pre-8.10 configuration file. do not start sendmail.
From: hubert
2000-05-03 17:03:10 +00:00
joda dc09e9637e xntpd -> ntpd 2000-05-03 14:40:39 +00:00
itojun 366bbade5a sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.
2000-05-03 10:55:19 +00:00
augustss b09bd0e884 s/xntpd/ntpd/ 2000-05-02 16:31:11 +00:00
simonb e5150c9868 Out with the old, in with the new. 2000-05-02 12:19:20 +00:00
lukem 0a610ebbd3 use extra_commands= instead of using 2nd argument to run_rc_command 2000-04-30 13:23:04 +00:00
lukem 3b853f3018 remove /var/run/dmesg.boot before attempting to write to it 2000-04-30 12:39:56 +00:00
lukem 32c9a44095 - use checkyesno in $start_precmd and change start_cmd to `postfix start'
- use $extra_commands instead of passing "reload" to run_rc_command
2000-04-30 12:21:00 +00:00
veego 63f94fabf2 Fix the last change so it doesn't fail due too a missing '; then'. 2000-04-29 06:01:08 +00:00
thorpej 7a38ab7c44 Don't warn about $hostname not being set if $dhclient == YES; it's quite
likely that we'll be getting the hostname via DHCP when it runs.
2000-04-28 00:13:39 +00:00
veego ebe6c4d40d Use the stop_cmd to unmount the filesystems with 'umount -a'.
This helps to fix the unclean reboots (at least on my system).
2000-04-27 21:00:50 +00:00
veego c9f5754ee8 You need to add a xxx_precmd with a checkyesno yyy if you use a xxx_cmd
in an rc.d script.
2000-04-27 20:58:26 +00:00
thorpej fad0a37405 Provide rc.d support for the Postfix mail system. Committed to the
base because there is no support for packages in rc.d, and Postfix
is supposed to become part of the base system anyhow.
2000-04-26 05:28:03 +00:00
thorpej 0316517d36 Make ccd and raidframe provide `disks', and make swap1 and fsck
depend on `disks', rather than `ccd' and `raidframe'.
2000-04-26 05:13:51 +00:00
itojun 3fff16ff47 rtsol is not a daemon. rtsol.d should have been killed by rc.d/rtsold.
(correct me if i'm wrong)
2000-04-20 02:12:04 +00:00
thorpej a596663a81 nfsiod script is gone. 2000-04-16 04:18:51 +00:00
tsarna a32696c2de Death to nfsiod!
It is replaced by kernel threads that do the same thing. The number of
kernel threads used is set with the vfs.nfs.iothreads sysctl.
2000-04-15 21:14:48 +00:00
lukem f408de971d as this script is primarily for compatibility (with people's
rc.local), call it in a way that is compatible with the old behaviour:
	* remove the stop case
	* don't set $1="start" in the start case

xxx: it's debatable if this script should even exist, but i digress ;-)
2000-04-13 00:39:47 +00:00
lukem 2665e61925 make `stop' a no-op, so that the network doesn't disappear at an
inconvenient time during boot.

this may be fixed a different way in the long term...  (not that the old
rc.shutdown supported stopping the network, or could i really see a
practical use for allowing it at this stage, but in the future someone
might want the functionality i've just disabled).
2000-04-11 05:03:24 +00:00
tsarna 506c359083 Improve backwards compatability and leave securelevel the old way. 2000-04-09 21:00:04 +00:00
tsarna 163510ecf4 The file /etc/sysctl.conf is now run with sysctl -f at boot time.
This replaces the previous /etc/rc.d/sysctl. Also, the variables are now
set earlier, between ipf/ipnat and the network coming up.

The rc.conf defcorename and securelevel variables are no more. You can
set them directly in sysctl.conf now.
2000-04-08 23:02:53 +00:00
thorpej 93f24178a7 dhclient does not, in fact, require /var/db/dhclient.leases to exist. 2000-04-06 17:19:13 +00:00
enami 129d97f658 routed is live in /sbin, not /usr/sbin. Pointed out by kay@kaynet.or.jp. 2000-03-29 09:09:06 +00:00
itojun 0a94c72b0f correct reject route installations for IPv6. improve comments. 2000-03-17 17:41:01 +00:00
lukem 174455c38a fix check for domainname since it can come from /etc/defaultdomain as well as $domainname 2000-03-16 22:22:15 +00:00
fvdl 8fbb81c21e dhclient lives in /sbin, not /usr/sbin 2000-03-15 03:15:47 +00:00
lukem 0059d641e5 * replace daemon, login, servers with DAEMON, LOGIN, SERVERS
* remove sshd (it was from my private system)
2000-03-13 04:03:52 +00:00
itojun deaf45edc1 disallow packets to malicious 6to4 prefix, based on
http://playground.iijlab.net/i-d/draft-itojun-ipv6-transition-abuse-00.txt
2000-03-12 04:21:26 +00:00
thorpej 5d18d90843 Rearrange so the ouput of this is a bit more cosmetic. 2000-03-12 03:49:36 +00:00
veego bfa0f14ea6 Fix the network_stop function so it doesn't fails due to missing ]['s. 2000-03-11 20:13:42 +00:00
veego 0cc5873563 Add raidframe to the REQUIRE list. rcorder seems to get it right, but it
is better to add it.
2000-03-11 20:12:22 +00:00
veego b869270297 Don't start rc.wscons with an start/stop argument. Disable stop and add an
checkyesno check.
2000-03-11 20:11:16 +00:00
veego 84807b9933 Add missing checkyesno's. 2000-03-11 20:10:21 +00:00
veego aacfec2af3 mountd requires mountall. 2000-03-11 17:29:50 +00:00
lukem c53094a738 rc.d scripts derived from /etc/rc 2000-03-10 11:53:23 +00:00