Commit Graph

203 Commits

Author SHA1 Message Date
lukem e512d5dcf7 Set command_args to '-f ${sshd_conf_dir}/${name}.conf'.
This occurs before the first load_rc_config() so that it may be
overridden by the user, and appears in single quotes so the
variables don't get evaluated until the eval in run_rc_command().
Problem noted by Patrick Welche <prlw1@cam.ac.uk> in [bin/15912].
2002-03-27 09:15:54 +00:00
lukem 5ee7ac8886 Replace $critical_filesystems_beforenet with $critical_filesystems_local .
Replace  $critical_filesystems            with  $critical_filesystems_remote .

The new names are now consistent with the type argument that
mount_critical_filesystems() is called with, and allows for other types to
be easily supported by that function.

For backwards compatibility purposes, if the now obsolete variable is defined
(even empty), it takes precedence over the new form, and you will be warned.
If you want to stop the warnings, update your rc.conf(5) settings!
2002-03-27 08:53:39 +00:00
lukem 1dad4ca74f clean up warnings.
don't bother setting defcorename from obsolete $defcorename.
2002-03-27 08:03:08 +00:00
lukem 88eb34e804 clean up warning 2002-03-27 07:37:56 +00:00
wiz 7a92731e6f Fix typo in last (which broke the script). 2002-03-25 03:22:10 +00:00
sommerfeld 626f81690e Improve information density of output -- add the dozen -reject routes
with "route -q" since they are always the same and convey no useful
information.

While we're here, use sysctl -qw instead of sysctl -w >/dev/null
2002-03-24 17:58:21 +00:00
lukem cb067e4b20 also check $rc_force != "" to determine if operation should occur 2002-03-24 15:52:41 +00:00
lukem 398a7fe250 remove unnecessary precmd 2002-03-24 15:51:26 +00:00
lukem c0685815ef - Add sanity checks recommended by Robert Elz in [bin/13871] (with slight mods)
- Use symbolic trap names
2002-03-24 15:08:58 +00:00
thorpej 96776149fc Correct the "direction" of the barrier dependencies (DAEMON, LOGIN,
NETWORKING, and SERVERS) by specifying that certain things should
come BEFORE a given barrier, rather than having the barrier REQUIRE
a service.  This allows scripts to be removed without having to
edit the barrier dependencies.

As discussed on tech-userlevel, and approved by Luke.
2002-03-22 04:33:57 +00:00
lukem 1a286b1407 - Rename a bunch of "internal" run_rc_command() variables and officially
make them "externally" available:
	Previous	Current		Purpose
	--------	-------		-------
	_arg		rc_arg		Argument to command, after fast/force
					processing performed (and prefix
					removed)

	_flags		rc_flags	Flags to start the default command
					with.  Defaults to ${name}_flags,
					unless overridden by $flags from the
					environment.  This variable may be
					changed by the precmd method.

	_pid		rc_pid		PID of command (if appropriate).

	_rc_run_fast	rc_fast		Not empty is "fast" was provided.

	_rc_run_force	rc_force	Not empty is "force" was provided.

- Use rc_flags instead of _flags or ${name}_flags in various rc.d scripts,
  so that $flags from the environment overrides ${name}_flags from rc.conf(5).
  Fixes [bin/15800].
2002-03-22 04:16:38 +00:00
lukem 3c3d3219ff Implement rc.conf(5) variable `` $swapoff ''.
If set to yes, block-type swap partitions will be deleted upon shutdown.
This can be useful if swapping onto a RAIDframe device, but may cause
unnecessary delays during shutdown for the general case, so it's
disabled by default.
Should resolve [bin/14433] and [kern/14769].
2002-03-21 23:08:35 +00:00
martin 093f5dbc55 Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 17:03:28 +00:00
mrg 685d1c413a clean up a little:
- don't set the securelevel to the same thing
	- don't try to lower the securelevel

inspired by PR#13647
2002-03-01 17:58:00 +00:00
lukem c5a625870b ipmon: set -D via command_args rather than the default ipmon_flags.
resolves [install/15753]
2002-02-28 01:06:13 +00:00
lukem 7d6824228d Support alternate config dir for sshd conf file and keys (defaults to "/etc").
Based on [misc/12473] from Jim Bernard.
2002-02-24 12:50:08 +00:00
lukem 0c7bc63d83 oops; forgot to retain previous setting of $_flags (aka $syslogd_flags)
which adding "-P /var/run/syslogd.sockets"...
2002-02-20 01:49:59 +00:00
lukem a402e4cd01 populate /var/spool/postfix/etc with /etc/{localtime,resolv.conf,services}.
per suggestion from perry.
2002-02-12 02:19:27 +00:00
lukem 852ef3de6f improve comment, and clean up a test 2002-02-12 01:26:36 +00:00
lukem 62498fc17a reset perms of ptyX[0-9a-zA-Z] instead of just ptyX[0-9a-f] 2002-02-12 01:23:11 +00:00
lukem a8aa7922b1 don't forget to install ipfs... 2002-02-11 14:00:35 +00:00
lukem 84ea7917fd - Remove previous hack; rc.subr warns about the variable not being set
for a reason, which is usually ``your /etc/defaults/rc.conf is not up
  to date''.
- Consolidate `rm's into one line.
2002-02-11 13:55:42 +00:00
martti 89122f4056 Don't try to execute this script if ipfs is not set to YES. Otherwise
you'll see the following message:

   # /etc/rc.d/ipfs stop
   /etc/rc.d/ipfs: WARNING: $ipfs is not set properly.

This horrible change is needed because of the "shutdown" keyword.
2002-02-11 13:39:14 +00:00
martti d7bcd10a27 ipfs allows state information created for NAT entries and rules using
keep state to be locked (modification prevented) and then saved to disk,
allowing for the system to experience a reboot, followed by the restoration
of that information, resulting in connections not being interrupted.

To activate this feature, set ipfs=YES in /etc/rc.conf
2002-02-11 10:19:55 +00:00
lukem e00fb37f16 Rename NETWORK to NETWORKING, to allow rc.d to be on a case insensitive
file system (prevents conflict with 'network').  PROVIDE both NETWORKING
and NETWORK (the latter for compatibility with 3rd party scripts).
2002-01-31 01:26:05 +00:00
lukem 6c5c021900 use the recently added hw.disknames value from sysctl(8) to determine
the list of currently configured disk devices, and start raid parity
rebuilds on devices which match "raid[0-9]*"
2002-01-27 14:16:33 +00:00
lukem e3e168f629 if $ntpd_chrootdir != "", ensure that the following files, devices,
and links exist:
        ${ntpd_chrootdir}/dev/clockctl
        /var/db/ntp.drift -> ${ntpd_chrootdir}/var/db/ntp.drift
and then start ntpd with the appropriate options to run chroot(2)ed
under $ntpd_chrootdir as user ntpd group ntpd.

to take advantage of this, set ntpd_chrootdir in /etc/rc.conf.

[this is based on similar work i did for rc.d/named]
2002-01-18 10:51:30 +00:00
lukem c22b780e2f * build /var/run/syslogd.sockets to contain list of sockets in chrooted cages
that we know about, and start syslogd with -P /var/run/syslogd.sockets
  if necessary.
* add ${ntpd_chrootdir}/var/run/log to known sockets
2002-01-18 10:48:41 +00:00
lukem 1fd357560b - set NOPROG before .include <bsd.own.mk>
- reformat FILES= lines for easier future additions
2001-12-12 12:19:09 +00:00
martin 2859135383 Add rc.d support for ifwatchd (used to run ip-up/ip-down scripts for
in-kernel pppoe interfaces).
2001-12-10 16:53:06 +00:00
augustss 0f4c5ed617 Add moused, default off. 2001-10-29 23:25:00 +00:00
lukem f28a27bd16 if named_chrootdir is set, always repoint the /var/run/named.pid and
/var/run/ndc symlinks, because named_chrootdir might change between
restarts and the symlinks weren't getting updated correctly in the old code.
2001-10-11 07:10:08 +00:00
martin ef3e53a669 Add downinterfaces. Noticed by Thomas Klausner. 2001-09-08 06:06:52 +00:00
martin 552b2e3600 Make this work without parameters (i.e. manual invocation) 2001-09-04 20:40:40 +00:00
martin d7e4ab316c Add support to down some interfaces before shutting down the system. All
pppoe*  interfaces are automatically shut down by this script, others may be
added to the force_down_interfaces variable in /etc/rc.conf.
2001-09-04 18:09:13 +00:00
ad e74599e179 Make newsyslog at boot optional, as it should have been. 2001-08-18 19:50:19 +00:00
wiz a9356936b4 seperate -> separate 2001-07-22 13:33:58 +00:00
lukem 458d1a2516 After itojun's recent RTF_CLONED and other changes, it's not necessary to
add a route from an alias address to 127.0.0.1, so remove that code.
It's still necessary to configure lo0 -> 127.0.0.1 though, so emphasize that.
2001-07-08 07:16:00 +00:00
tron 3543e0f5fa Start "ipmon" with option "D" for daemon mode instead of starting it
in a subshell.
2001-07-05 05:26:57 +00:00
lukem f27a0c8f42 Now that "fsck -p" skips file systems that are mounted read-write,
always perform the disk check (unless /fastboot exists).  Previously
this would only occur when booting directly to multi-user, so the
fsck wouldn't happen after a single user boot going into multi-user.
2001-06-18 06:42:35 +00:00
lukem d7d9b87b1c Complain if $amd_master is set. This variable was used in 1.5 and prior
releases, but has been ignored since an am-utils update six months ago.
This fixes [misc/11971] submitted by Jun-ichiro itojun Hagino.  (Note that
$amd_flags is still supported, contrary to what the PR says).
2001-06-17 01:05:40 +00:00
lukem 919eb089e2 change mountd to use its own $mountd variable (instead of $nfs_server).
nfsd will complain if mountd isn't set.  from [misc/13135] by Johnny C. Lam.
2001-06-16 06:13:09 +00:00
fredette 1e6d1f7076 sunndd has been renamed ndbootd. 2001-05-23 20:29:14 +00:00
fredette b934309492 sunndd has been renamed to ndbootd. 2001-05-22 14:51:37 +00:00
enami 281a201c49 Install the file sunndd. 2001-05-21 11:09:09 +00:00
fredette bc14be100e Added rc.d support for sunndd. 2001-05-17 23:19:06 +00:00
drochner 2b60c3bb4f Add support for selection of a kernel builtin keymap and/or a userspace
keymap file to wscons.conf.
Follows PR misc/12760 by Stephen Borrill, but uses the external keymap
file instead of individual key entries in wscons.conf. This saves a lot
of editing work if the map has to be switched.
2001-05-02 15:14:02 +00:00
lukem 96612eac97 kre notes that "echo -n" is superfluous when creating a zero length file 2001-04-29 23:57:25 +00:00
lukem 312711efe8 Treat isdnd interfaces like ppp ones, and REQUIRE isdnd here.
Identified by Patrick Welche on current-users.
2001-04-26 03:56:20 +00:00
lukem bd47d831a1 depend upon isdnd as well 2001-04-26 03:55:16 +00:00