Commit Graph

370 Commits

Author SHA1 Message Date
atatat 89fc8be761 Change the default settings for sendmail.
(1) The stock sendmail.cf will only listen on the loopback interface.
(2) The stock submit.cf specifally connects to "localhost." which
    should be less susceptible to being confused or looking confused.
(3) The smtp listener starts by default, if needed.  The setting in
    /etc/default/rc.conf is still "no", but rc.d/sendmail detects the
    default setting and will change it to yes if need is determined.

Need is defined as "nothing else seems to have been changed about the
mail configuration but we'd like locally originated and locally
destined mail to be delivered".  If you change, eg, mailer.conf to
point to postfix or some other MTA, sendmail will not start.
2004-07-15 03:47:18 +00:00
atatat 5f89bdd921 Make the directory into which crash dumps are saved into something
that can be controlled via rc.conf.  The default is, of course,
/var/crash.
2004-07-15 03:29:55 +00:00
lukem 20fd132b8d * Add BEFORE: SERVERS, so state is restored much earlier in the boot sequence.
* REQUIRE: isdnd, so this will be shutdown before that, to prevent
  future problem if isdnd eve gets an explicit "shutdown" keyword.

Per discussion with Martin Husemann.
2004-07-05 08:21:15 +00:00
martin ebdc55a49e Make sure "downinterfaces" comes first - this means on shutdown this
script will run before downinterfaces destroys all state we try to
save here.
2004-07-05 07:53:03 +00:00
tron 313b9c84ab Install "pf" and "pflogd". 2004-06-30 09:22:41 +00:00
itojun de1993c88e rc.d fragment for PF. Peter Postma 2004-06-29 04:48:28 +00:00
abs eb24f87047 add rcvar 2004-06-03 16:29:15 +00:00
abs d5fc55fa51 Add rcvar="quota" 2004-06-03 16:27:44 +00:00
christos 367e1200da create /dev/random when chrooted. 2004-05-21 15:40:22 +00:00
lukem b997a4053a Update the paths to the required_files configuration files for the
move from /usr/X11R6/lib/X11/<app> -> /etc/X11/<app>.
Resolves PR [misc/25613] from Jukka Salmi.
2004-05-17 23:41:27 +00:00
lukem ee04d88971 Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
2004-05-16 09:53:09 +00:00
schmonz c8dd377ead Add RCS Id. 2004-04-25 16:52:19 +00:00
keihan f672be074d s/netbsd.org/NetBSD.org/ 2004-04-23 10:59:47 +00:00
christos 1d0fe2e424 Whitespace fixes, some code re-factoring, and a bit more verbose messages. 2004-04-21 19:35:13 +00:00
dbj 48019a3a47 simply logic and flow of check_part function 2004-04-21 18:27:26 +00:00
dbj 1b003e4b0c abstract superblock field reading into shell function 2004-04-21 18:06:06 +00:00
dbj 115f147f20 add function for reporting verbose messages 2004-04-21 17:26:42 +00:00
dbj 496faa9025 tweak return value of check_part function 2004-04-21 17:07:47 +00:00
dbj 324ebbbef7 some minor shell programming tweaks recommended by christos
use [ -n ] instead of [ ! -z ]
use $() instead of ``
use just "$@" instead ${1+"$@"}
2004-04-21 17:02:41 +00:00
dbj bbf17112c5 use shell constructs and cat instead of sed since
sed may not be available early in the rc.d sequence
2004-04-21 16:12:31 +00:00
dbj 4fe7bbb7da enable rc.d fixsb script
initial testing suggests that it is working and I am confident it
will not cause irrevocable damage
2004-04-18 04:02:27 +00:00
dbj 1195d38f2f add support for turning off fixsb in rc.conf
default is fixsb=YES
2004-04-18 03:49:43 +00:00
dbj d328d71583 This rc.d script attempts to correct problems
which may have been introduced by booting a netbsd-current kernel
from between April of 2003 and January 2004. For more information
see <http://mail-index.NetBSD.org/current-users/2004/01/11/0022.html>
This script was developed as a response to NetBSD pr install/25138

This should not be added to the Makefile or the default install until
it has been further tested
2004-04-16 14:52:52 +00:00
lukem 68909c287b Store the full path to the /usr/sbin/postfix in $postfix_command
and use the latter postfix_op() to implement start/stop/reload.
(We generally use full paths in rc.d scripts.)  Problem noted by Bill Squier.
2004-04-08 06:15:27 +00:00
mrg f79db8d04e move ipmon's "-D" argument from "command_args" to "ipmon_flags" so that
passing an (optional) filename argument (that must come last) works fine
from $ipmon_flags.  from PR#25006.
2004-04-04 13:59:36 +00:00
fredb f6e9f3cb15 Backout last change. I failed to note that the problem described in
PR bin/24653 had already been fixed with revision 1.9 of this file.
2004-03-31 18:01:07 +00:00
fredb ee6be08283 Take account of the fact that "ntpd" writes it's pidfile after chroot().
Closes PR bin/24653.
2004-03-31 17:52:06 +00:00
jonb c384cda06a Add ssh_keygen_flags variable to rc.conf to allow users to set the
size of auto-generated keys if desired.
2004-02-18 17:36:34 +00:00
christos 0120b80220 add identd 2004-02-01 02:32:58 +00:00
christos 1359f873c4 new identd script 2004-01-31 21:50:45 +00:00
uebayasi 0b297c927b Missing rcvar. From Nicolas Joly in PR 24106. 2004-01-15 11:20:19 +00:00
jmmv ec3213dda0 Add the veriexec rc.d script. 2004-01-14 10:51:54 +00:00
blymn 67b5617823 Add startup script for verified exec. 2004-01-14 06:53:50 +00:00
uebayasi 79ca61d5d8 Define an rcvar "virecover" so that this can be configurable. The default
is YES.
2004-01-11 14:21:43 +00:00
uebayasi 6892f132b9 Set an rcvar so that this can really be configurable by the rcvar. (This
means that it has long been not be able to do so!)
2004-01-11 13:57:56 +00:00
martin 91d3025816 Add rtclocaltime. 2003-12-27 00:29:21 +00:00
martin 448491ee86 Add a new /etc/rc.conf option: rtclocaltime=YES adapts the RTC offset
at boot automatically, so a machine dual booting another OS that uses
the RTC at localtime and NetBSD agree on the current time even if daylight
saving started/ended (without recompiling a kernel twice per year).
Awk code by Matt Thomas.
2003-12-27 00:23:22 +00:00
lukem 1b373d7a5e Revert part of previous; etc/rc.d/kdc must be installed even if Kerberos
isn't enabled.
This is how the rc.d system works in conjunction with our current build
and install system; all the rc.d scripts are installed even if the
subsystems they control are not.
2003-12-26 12:04:35 +00:00
christos 501d4710c0 prepare for bind 9. 2003-12-18 18:30:18 +00:00
dyoung 4758291178 Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
  distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
  9 out of 10 experts agree that it is ludicrous to build w/
  KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
  MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly.  That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles.  While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
2003-12-11 09:46:26 +00:00
drochner 505ed045c0 ntpdate to a multicastclient address doesn't work 2003-12-04 18:28:54 +00:00
fredb 8098923219 Make the ntp.conf parsing more specific, and therefore more robust. Closes
PR bin/23305.
2003-10-29 19:00:14 +00:00
fredb 836389dfbc Supply the usual default setting of $commmand. Omission pointed out by
Launey Thomas in private mail.
2003-10-20 16:09:15 +00:00
christos b5aee30a01 set fsck_flags=-p in /etc/defaults/rc.conf instead of checking if it is
empty in /etc/rc.d/fsck. From Bernd Ernesti.
2003-10-20 15:02:15 +00:00
fredb 663be81e89 Allow for a syntax extension for "ntp.conf" with ntp 4.2.0. 2003-10-19 13:31:28 +00:00
fredb b703c0fa68 Use "$command", instead of hard-coded "ntpdate", so that the user can
override the path using the usual mechanisms.
2003-10-19 13:23:57 +00:00
christos e2ba1d7082 Allow overrides via fsck_flags 2003-10-15 17:38:04 +00:00
jdc d8eef4e074 Allow an IPv6 default route to be set from /etc/mygate6 or $defaultroute6.
Approved by itojun@.
2003-10-12 09:50:05 +00:00
wiz ea949da1c7 Add a knob to turn off automatic configuration (via rc.d) of
non-auto-configured (via kernel) raid devices. oster says ok.
2003-09-10 14:50:19 +00:00
mrg 777a312e0f ipnat needs to be before SERVERS - one may need NAT for servers to work
(eg, ntpdate).
2003-08-22 08:43:26 +00:00
tron f48b602669 Don't use depricated "-f" option to mixerctl(1). Patch supplied by
Bruce J.A. Nourish in PR misc/22524.
2003-08-18 13:04:10 +00:00
lukem b0f080676b Support "multicastclient" directives in ntp.conf.
Based on [bin/17930] from Stoned Elipot.
2003-06-27 07:22:36 +00:00
martin 78e800a41c Ifwatchd now uses syslog, so require syslogd. 2003-06-24 09:32:46 +00:00
ragge 91b1808f8e Remove kvm_mkdb, it's not used anymore. 2003-05-11 18:17:30 +00:00
thorpej f0150db8f2 Add an rc script for powerd(8). 2003-04-18 05:19:35 +00:00
is f334171ccc Variable substitution happens at trap installation time, not at trap
execution time - so it used to print "Using default configuration of
/etc/passwd".
2003-04-03 11:25:10 +00:00
atatat a7627e5f06 Reorganize/clarify the configuration checks (and subsequent messages)
that might block startup, and be more permissive in general about
allowing the daemons to start.

Add some descriptive comments to the top of the smmsp script that
describe the purpose of the process.
2003-04-02 18:00:13 +00:00
atatat 9dc7b7c964 Tweak postinstall to check for (and help out on) the upgrade to
sendmail 8.12.8.  Some of the same machinery (in shorter form) is in
the additions to rc.d/sendmail.  Also, add a smmsp startup script for
the sendmail client queue runner.
2003-03-24 15:19:27 +00:00
wiz 4f30393de2 Allow ccd autoconfiguration to be turned off (by setting ccd=NO in
/etc/rc.conf; default is YES.)
Suggested by elric, ok'ed by lukem.
2003-03-19 08:54:00 +00:00
wiz 4c74ff3fdd Allow cgd configuration to be skipped (by setting cgd=NO, defaults to YES).
Closes my PR/20766.  Based on a suggestion by lukem.
2003-03-19 06:06:47 +00:00
martin 047a69a2e5 Make it start before "SERVERS" and remove redundant dependency on
"network". This brings it in line with the altqd script, which has
very similar requirements.
2003-03-14 09:18:50 +00:00
lukem f70738da04 move altqd slightly later in the boot sequence; as it's in /usr/sbin,
it needs to depend upon mountcritremote, not run before NETWORKING ...
2003-03-10 18:17:06 +00:00
jmmv db97c4116c Use the pidfile created by wsmoused. 2003-03-04 22:32:11 +00:00
atatat 3065ba7178 Execute the actual command as it's set instead of calling the sh
routine directly.  This allows one to to override a specific command
via the use of /etc/rc.conf.d/sysdb.
2003-02-24 01:04:45 +00:00
grant 117844eb75 change behaviour of 'reload' to only reload the NAT rules and NOT flush
the state table, making it much more useful.

The behaviour of 'restart' is unchanged (flush state table and reload
rules), but is now done slightly more elegantly.

ok'd by lukem.
2003-02-16 22:18:46 +00:00
lukem 2c589141ff Implement start_cmd as:
start_cmd="${name} "'${rc_arg}'
and stop_cmd & reload_cmd as:
	stop_cmd=$start_cmd
	reload_cmd=$start_cmd
(Just to be tricky)
2003-01-31 06:47:16 +00:00
martti 405c73366e Back out previous (as discussed with releng). The correct way to set this is:
# echo "myserver" > /var/yp/binding/`domainname`.ypservers
2003-01-16 11:55:28 +00:00
martti 1e0411d0d5 Script to bind a NIS client to a known server.
$ grep yp /etc/rc.conf
ypbind=YES
ypbind_flags="-ypset"
ypset=YES
ypset_flags="myserver"
2003-01-16 07:37:33 +00:00
yamt 567c0a7e50 in comment, metion about src/distrib/sets/lists/etc/mi as well. 2003-01-10 05:07:45 +00:00
christos 99f6c8054f add staticroute 2003-01-09 15:58:23 +00:00
christos e4cf375b81 Script to add and remove static routes:
eg:
    $ cat /etc/route.conf
    # Turn on/off IP forwarding.
    +sysctl -w net.inet.ip.forwarding=1
    -sysctl -w net.inet.ip.forwarding=0
    net 192.168.2.0 -netmask 255.255.255.0 192.168.150.2
2003-01-09 15:57:02 +00:00
christos 8d1054dc70 revert previous; luke and matt want this as a separate script. 2003-01-09 15:52:58 +00:00
christos 22aa10c0a0 Add /etc/route.conf processing to add static routes. Removes one more
reason for netstart.local.
2003-01-09 15:12:47 +00:00
jhawk 2c3ae584e1 Run ldconfig with ${rc_flags} so you can set ldconfig_flags in rc.conf
to specify additional a.out directories to merge into the runtime link
cache.
2003-01-08 04:17:19 +00:00
tron 2005231632 Revert last change for now. It causes hangs during system shutdown when
NFS filesystems are mounted.
2003-01-07 08:41:55 +00:00
tron 74efbb051c Add keyword "shutdown" so that this script is really executed on system
shutdown to delete clone interfaces.
2003-01-06 10:11:14 +00:00
wiz 247d6694f7 Handle links to absolute paths too. Closes my PR 19125. 2002-12-05 16:52:58 +00:00
lukem 2cc646d2d1 ipmon -D writes a pidfile; use it 2002-10-21 05:20:00 +00:00
kent ba5fd9b3f8 /etc/rc.d/mixerctl: Add capability to save and restore mixer settings.
Thanks to Julio Merino.
2002-10-12 11:29:28 +00:00
elric 98839fb386 Added cgd rc.d script and put it in the appropriate postinstall and
mtree files.
2002-10-09 14:55:53 +00:00
atatat a67080c774 Reorganize the sysdb script so that lkm{1,2,3} can request that the
dev database be rebuilt after loading modules.  Loading modules might
create new nodes in /dev, but the dev database is being initialized
too soon for lkm2 and lkm3.  This means that, eg, /dev/xf86 (typically
marked AFTERMOUNT and loaded by lkm2) will show up properly.  Reviewed
by lukem.
2002-10-08 16:21:52 +00:00
tron 6e40068171 Automatically create and destroy cloning interfaces and sync IP Filter
immediately afterwards before bringing the interface up. This avoids
a small security gap existing in the previous scheme where IP Filter
was synced after all cloning interfaces were created and brought up.
2002-10-05 05:24:40 +00:00
martti 3e11ad9d79 Print a warning message if IP forwarding is not activated (PR#10295). 2002-09-24 11:03:53 +00:00
perry 8a20c1019d create a utmpx with the same permissions as utmp
Solves pr 18282, although very differently.
2002-09-16 02:23:31 +00:00
abs df86ef5a9f Split raidframe parity checking/rebuild out into raidframeparity, which is
called after quota so we don't end up with fsck and raidframe parity rebuild
taking forever after a crash/reboot.
While we are here check for raid[0-9].conf & raid[1-9][0-9].conf not
			    raid[0-9].conf & raid[0-9][0-9].conf
2002-09-03 15:35:51 +00:00
takemura b8ce6e8201 Added touch panel calibration utility. 2002-08-27 14:12:09 +00:00
martin 39acbf03ed Avoid exit(0) to play more nicely with rc_fast_and_loose.
Noted by Greywolf on tech-userlevel.
2002-08-16 18:05:19 +00:00
thorpej afbf483286 Add a wdogctl startup/shutdown script. 2002-07-30 05:58:42 +00:00
bad e9a1e24f95 Ignore "peer" statements for local clocks too when selecting hosts from
ntp.conf.
2002-07-19 03:22:09 +00:00
rafal 4b77d56d71 Skip blank lines in the input file (mixerctl.conf). 2002-07-16 03:24:24 +00:00
yamt 4b45ab0ce1 add comment:
"if you're adding new scripts, don't forget to update
src/etc/postinstall and src/etc/mtree/special."
2002-07-03 23:31:25 +00:00
itohy 908bf86adc Check for /dev/clockctl availability and print appropriate diagnosis if not. 2002-07-02 14:47:22 +00:00
grant 490569127e add wsmoused. 2002-06-29 04:07:08 +00:00
christos 7f89b13752 Add wsmoused 2002-06-27 15:08:55 +00:00
lukem da820a3387 Build the list of names to check for $XXX_chrootdir support from
`rcorder -k chrootdir` rather than hardcoding "named ntpd".
Based on [misc/16884] from Jarle Greipsland <jarle@uninett.no>
2002-06-18 14:35:38 +00:00
lukem 56dc20a9f6 ntpd_chrootdir needs /dev/clockctl as well 2002-06-17 06:47:58 +00:00
lukem 3da8227a70 $ntpd_chroot requires "pseudo-device clockctl" in the kernel 2002-06-15 01:55:44 +00:00
lukem 4f32d6fce8 - at least require mountcritremote (mixerctl is in /usr)
- read from < mixerctl.conf instead of piping output of cat...
2002-06-11 16:31:41 +00:00
jmcneill 8ebbe63269 Fix typo. 2002-06-02 19:04:10 +00:00
jmcneill 56d95e6efe Add mixerctl script. 2002-06-02 18:37:45 +00:00