Commit Graph

239 Commits

Author SHA1 Message Date
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
lukem
f1e776b86c minor cleanup. add note to why syslogd is here (a la note in ppp) 2001-04-26 03:54:38 +00:00
lukem
e595ebd705 be consistent with other scripts when temporarily setting umask to 022 2001-04-25 23:27:37 +00:00
lukem
f08a3bbdf1 wrap file creation operation in: ( umask 022 ; <command...> ) 2001-04-25 23:23:37 +00:00
lukem
d2c3bd6a11 - create the default accounting file with a umask of 022.
- set and use $accounting_command (/usr/sbin/accton) and
  $accounting_file (/var/account/acct)
- fix spelo in message
2001-04-25 23:20:15 +00:00
lukem
18a7a9feca set the umask to 022 (remembering the previous setting) for ssh_keygen() 2001-04-25 23:18:50 +00:00
lukem
5d63f9209b store path to ldconfig in a variable and reference that 2001-04-25 13:00:17 +00:00
lukem
3909ce4551 setup tty[p-uw-zP-T]? (kern.maxpty default = 256) instead of just tty[p-s]?.
on platforms which don't reserve ttyv? for console on ttyv0, set up ttyv?
2001-04-25 12:59:16 +00:00
jdolecek
b0cda2cf0b If the accouting file doesn't exist, create it if possible.
Addresses misc/12735 by Robert Elz.
2001-04-25 11:48:22 +00:00
lukem
230d9cbc0f s/dependancy/dependency/. require NETWORK and SERVERS instead of network 2001-04-19 16:18:27 +00:00
lukem
1716d6464b s/dependancy/dependency/. explicitly require DAEMON 2001-04-19 16:00:29 +00:00
lukem
7d15d5881b s/dependancy/dependency/ 2001-04-19 15:56:32 +00:00
lukem
c136cf3dfe wrap kvm_mkdb arg in "s. from adam laurie in pr 12664 2001-04-16 01:38:15 +00:00
msaitoh
12f6faba63 check no_swap 2001-04-13 22:31:16 +00:00
aymeric
f0492abe53 we now rely on /usr/libexec/virecover to get the work done 2001-04-11 21:02:44 +00:00
wiz
dc5eda62fb Remove references to gated, except the conflict check in rc.d/routed.
Noted by Launey Thomas <ljt@alum.mit.edu>.
2001-04-06 09:38:54 +00:00
thorpej
01c28c7f10 Add a startup script for altqd(8). 2001-04-05 23:54:59 +00:00
wiz
c4db351748 Don't install /etc/rc.d/gated any longer, since gated isn't in the
base system.
2001-04-05 17:04:03 +00:00
itojun
dcdec20e94 check existence of /etc/ssh_host_rsa_key too 2001-03-26 22:32:39 +00:00
itojun
27c0127814 auto-generate SSH protocol version 2 RSA key.
use newer command line syntax for ssh-keygen (-t <type>, instead of -d)
2001-03-26 22:21:26 +00:00
lukem
6ddd47cd37 if $named_chrootdir != "", ensure that the following files, devices,
and links exist:
	${named_chrootdir}/usr/libexec/named-xfer
	${named_chrootdir}/dev/null
	${named_chrootdir}/etc/localtime
	/var/run/named.pid -> ${named_chrootdir}/var/run/named.pid
	/var/run/ndc -> ${named_chrootdir}/var/run/ndc
and then start named with the appropriate options to run chroot(2)ed
under $named_chrootdir as user named group named.

to take advantage of this, an admin should copy /etc/namedb ->
${named_chrootdir}/etc/namedb, and set named_chrootdir in /etc/rc.conf.

[dev/null & etc/localtime setup inspired by openbsd. i already had the rest]
2001-03-12 16:08:38 +00:00
lukem
a2c01fa479 if $named_chrootdir is defined, add ${named_chrootdir}/var/run/log to
the list of sockets listened to.
2001-03-12 16:04:20 +00:00
itojun
5c34a310c2 comment correction: 127/8 must not leave the node (RFC1122) 2001-03-02 03:07:29 +00:00
lukem
9c42e9ee42 explicitly REQUIRE mountcritremote. sort REQUIRE entries 2001-02-28 18:14:50 +00:00
lukem
a65b46cfa0 clarify purposes 2001-02-28 17:19:42 +00:00
lukem
12c191e0cc support `resync' (ipf -y).
suggested by Johnny C. Lam in [misc/12300]
2001-02-28 17:03:50 +00:00
fredb
fac4bf8060 Add "hup" and "stop" commands. Closes PR bin/12135. 2001-02-11 00:51:35 +00:00
thorpej
04e705cf5a Depend on "ike". 2001-01-18 04:57:48 +00:00
thorpej
4baa94651d Startup script for racoon(8). Racoon provides "ike", and requires
"kdc" (since you might want to use IPsec on your Kerberos server,
and might be using GSSAPI to authenticate Phase 1) and "ppp" (since
racoon(8) needs to know about all of your network interfaces).
2001-01-18 02:01:12 +00:00
thorpej
b170714679 The KDC requires only the network. Anyone running a KDC with
the binary on NFS deserves to lose.
2001-01-18 02:00:02 +00:00
minoura
cb75d98f1d Add /etc/rc.d/poffd, for x68k power management deamon. 2001-01-14 15:37:22 +00:00
itojun
7de2724c3a move IPv6 mode/route configuration upwards, so that !rtsol in
/etc/ifconfig.* is meaningful.
2001-01-13 13:26:36 +00:00
itojun
3711020b5c extend /etc/ifconfig.xxN, for comment lines (#) and shell script
fragment (!).  inspired by openbsd /etc/hostname.xxN.
2001-01-11 17:56:16 +00:00
martin
5b6d57d949 Supply enough rope to let the user disable or override all interface
up/down magic.
2001-01-08 12:45:39 +00:00
martin
f9d12c2349 Don't fiddle with any isdn interface if the isdnd variable is set to NO
in rc.conf.

Actually do install the isdnd script.
2001-01-07 17:53:36 +00:00
martin
15a3b3b6e1 Add startup script for isdnd. 2001-01-07 17:04:49 +00:00
itojun
6c348b2e2e add $ip6sitelocal, to control installation of reject route for fec0::/10. 2001-01-03 17:54:04 +00:00
jmc
c5ddb89d6e Patch from Hubert. aliases never get rebuilt if aliases.db is never originally generated. 2000-12-18 07:56:41 +00:00
nisimura
46d6b5a7cd More cautious about undefined hostname check in terms of what hostname(1)
returns.
2000-11-26 06:46:42 +00:00
nisimura
7fecedd930 I believe in that the facy nested quotes was intended to skip blank
lines, but am not sure it is allowed as a standard practice of the
/etc/ifconfig.xxN file.
2000-11-22 04:20:04 +00:00
wiz
f457c2158d un-break. 2000-11-21 16:12:48 +00:00
veego
a497b11b46 The new am-utils use now /etc/amd.conf and no longer the $amd_master file.
Despite that /etc/amd.conf is now the default configuration file, it needs
to be defined if you supply other options when you start amd, so add it here.
2000-11-21 12:20:12 +00:00
lukem
f8ea339f55 minor typo in previous 2000-11-21 09:59:02 +00:00
nisimura
fa16d69a56 Shell programming police for sophistication; take #2. Handle the
case when the filename expansion results in no match more gracefully.
Far less costy than invoking a new process.
2000-11-21 09:38:06 +00:00
nisimura
f412f76212 Shell programming police for sophistication. It's not necessary
to enclose `prog` backquote command substitution with double quotes
as it produces a quoted string.  Other changes are pending this time.
2000-11-21 08:39:50 +00:00
lukem
84fed31e23 start all raid[0-9].conf and raid[0-9][0-9].conf, not just raid[0-3].conf.
do in order, so that raidN.conf is started before raidNN.conf.
2000-11-17 05:43:46 +00:00
lukem
616bd9bad1 - replace IFS='.'; set -- $int; echo $2 with ${int##*.}
- can't use $configured_interfaces in network_stop(), so use `ifconfig -lu`
  instead
2000-11-17 04:19:06 +00:00
jdolecek
cb5786ecbe make this REQUIRE also cleartmp, so that it's started after /tmp
is cleared, otherwise the xfs's socket might get removed
This fixes misc/10310 by Alasdair Baird
2000-11-09 00:05:31 +00:00
nisimura
585c4dc3e6 Add missing -n option of sysctl(8) booted_kernel name retrival. 2000-10-14 07:33:39 +00:00
nisimura
17e8cec25b Use && and || for logical concatenations instead of -a/-o test operators. 2000-10-09 06:11:38 +00:00
nisimura
15bcada9c3 - Remove extra 'rm -f' since file redirect safely clobbers existing files.
- Remove one sed invocation replacing it with shell internal construct.
2000-10-09 06:01:18 +00:00
nisimura
a1cd6987aa Use find(1) to search files in straight fashion with the cost of external
command invocation.
2000-10-09 05:33:53 +00:00
nisimura
fb62520419 Avoid extra command invocation as possible, and use smart variable
substitution instead.
2000-10-09 05:30:17 +00:00
nisimura
e4d2a57704 - avoid -a or -o logical operator of test command as possible. They would
introduce syntaxical ambiguousity, and having concatenation with && or
  || costs nothing because our sh(1) has test(1) builtin.
- use elif construct to avoid dungling else-ifs.
- while-read construct does not need enclosed by a sub-shell.
- variable detection could be done in eval args=\$ifconfig_$int
- smart variable substitution occationally saves lines and extra command
  invocations.
2000-10-09 05:02:14 +00:00
lukem
641a3c9378 support loading ipf6.conf as well as ipf.conf.
inspired by [misc/11033] by Gregory McGarry <g.mcgarry@ieee.org>
2000-10-01 05:58:06 +00:00
fvdl
5927169fa7 Mention "a.out" in the start message to be clear about the purpose of
this script.
2000-09-29 17:49:25 +00:00
thorpej
c949d8af3c Always install sshd. 2000-09-28 22:16:15 +00:00
ad
d43acf7d93 Provide the option of running newsyslog at boot time; mainly for laptop
people.
2000-09-21 10:36:02 +00:00
lukem
bd11504cb2 - only perform the checkyesno on the variable named in $rcvar (rather than
implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr
2000-09-19 13:04:38 +00:00
jdolecek
1c61a5d083 On sendmail start, check modification time of /etc/mail/aliases
and couple of other common map files and regenerate appropriate
*.db files as needed.
Idea taken from RedHat 6.2.
2000-09-14 21:03:17 +00:00
lukem
42655f8ee9 REQUIRE ipnat and mountd.
fixes PRs [misc/10958] and [misc/10959] by Mike Santos <mike@ethmoid.org>
2000-09-06 01:05:43 +00:00
lukem
ebc99afce8 sort lines. add nonlocalswap, securelevel 2000-08-21 23:39:07 +00:00
lukem
e26f093e93 convert fsck.sh -> fsck (using kill -TERM $$ to stop autoboot). 2000-08-21 23:38:07 +00:00
lukem
b94d4bd809 sort REQUIRE lines 2000-08-21 23:36:50 +00:00
lukem
093b7f0ae5 remove BEFORE DAEMON 2000-08-21 23:35:41 +00:00