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
lukem
3f5134ff22
REQUIRE ipfilter and ipsec
2000-08-21 23:35:20 +00:00
lukem
8f896c47b9
`REQUIRE bootconf' in lkm1 rather than `BEFORE beforenetlkm' in bootconf.sh
2000-08-21 23:34:45 +00:00
lukem
a4517195f9
needs to run after mountcritremote, since ipnat is in /usr/sbin
2000-08-21 23:33:50 +00:00
lukem
d8b52eec28
support running /etc/rc.shutdown.local
2000-08-21 23:33:06 +00:00
lukem
ce3ce86261
migrate raising of securelevel from sysctl to separate securelevel script.
...
the latter depends upon aftermountlkm (but is required by DAEMON), so that
lkms may be loaded before the securelevel is raised.
noted by Rafal Boni <rafal@mediaone.net> in [bin/10780]
2000-08-21 23:31:24 +00:00
lukem
09251753f6
migrate rc.wscons to (already existing) rc.d/wscons
2000-08-21 23:01:36 +00:00
abs
31a6224745
Move options into ntp_flags, to make it possible to add '-u' without
...
modifying rc.d/ntpdate
2000-08-21 14:48:39 +00:00
lukem
5007ab036b
- sshd has a pid file, so take advantage of it
...
- support `reload' arg (using default of SIGHUP)
2000-08-10 22:49:43 +00:00
thorpej
690a071d43
Need bsd.own.mk
2000-08-10 22:02:07 +00:00
lukem
0b1677de5f
- provide sshd not ssh
...
- don't start until after LOGIN (after NETWORK is way too early)
- KNF (as such :)
2000-08-10 01:41:09 +00:00
thorpej
f0c5d26a40
Startup script glue for the Heimdal KDC.
2000-08-06 21:32:56 +00:00
itojun
e9b5e5d87c
fix comment on DAD wait
2000-08-02 13:59:11 +00:00
hubertf
dcefdf7722
Adjust comment to what's actually being done
2000-08-02 11:07:51 +00:00
itojun
8451f00774
we need to sleep for IPv6 DAD period, before and after rtsol.
...
(they are for stability in boot-time configuration)
comment from perry.
2000-08-01 20:49:11 +00:00
jwise
d6662ec62f
Change name of precmd from start_precmd to sshd_precmd. While it worked
...
fine as was, the result was the line `start_precmd=start_precmd' which
looked odd. Pointed out by Bernd Ernesti.
While here, add NetBSD RCS Id.
BTW, to clarify, as people have asked: this script does not support
pkgsrc/security/sshd -- that package comes with a perfectly fine rc script
which in addition to supporting /etc/rc.d can also be used with 1.4.X.
This script will not trivially work with the ssh package as it a.) calls
the ssh commands at the pathnames they will be installed at by usr.bin/ssh,
and b.) generates a DSA key as well as an RSA key.
2000-08-01 14:28:32 +00:00
jlam
f3983ea4df
Correct apparent past-o: RSA -> DSA
2000-07-31 21:43:52 +00:00
jwise
5cfec6f11d
An sshd startup script for use with usr.bin/sshd. Installation is conditional
...
on ${SSHDIST}, as with usr.bin/ssh itself.
This script includes a `keygen' target for regenerating RSA and DSA host keys,
and invokes this if these keys are not present when sshd is started up.
2000-07-31 20:39:41 +00:00
chuck
c438e69177
if update_motd is set, do not gratuitously force it to have an empty line
...
in it. also be a bit smarter about deleting stuff from motd during
update. it is now possible to have a one line motd just like in SunOS.
2000-07-31 00:17:05 +00:00
veego
ea8a88f609
syslog requires databases from sysdb which creates /var/run/utmp.
2000-07-29 21:50:20 +00:00
lukem
392130e304
move recreating /var/run/utmp from mountcritlocal (where /var/run is
...
purged but /usr/bin/install is not available) to sysdb.
problem noted by Matthias Drochner.
2000-07-27 13:58:49 +00:00
lukem
48b9eee5e1
* add new dummy dependancy `NETWORK' to be REQUIREd by services which need
...
networking to be operational before starting, and use as appropriate.
NETWORK depends upon network and dhclient.
* move the guts of systemfs into mountcritlocal
* replace the dependancy on systemfs with mountcritremote, and remove the
former.
* SERVERS now also depends upon ppp
Notes:
* dhclient (and others) needs /var to be a $critical_filesystem_beforenet
* dhclient now starts before syslogd (because the latter needs /usr, and
/usr might need dhclient to be mounted)
Should fix PRs:
[install/9853] [bin/10002] [misc/10349] [port-i386/10633] [misc/10641]
2000-07-26 00:11:48 +00:00
jdolecek
1bf05ae3b1
the format without netmask is supported for compatibility only and not
...
specifying it is discouradged, actually
also add comments about this fact to etc/rc.d/network, for people who
don't read manpages :)
2000-07-25 18:47:28 +00:00
lukem
1a29746222
- fix typo; the first ipsec_start() should be ipsec_prestart()
...
- if ipsec.conf isn't readable and the system is booting directly to multiuser,
send SIGTERM to the parent (/etc/rc) so that init(8) aborts the boot.
2000-07-21 01:16:07 +00:00
lukem
262e4b1975
if ipf.conf isn't readable and the system is booting directly to multiuser,
...
send SIGTERM to the parent (/etc/rc) so that init(8) aborts the boot.
2000-07-21 01:14:23 +00:00
lukem
31e7834913
reword description
2000-07-20 23:36:56 +00:00
thorpej
f5e99478c8
Build a list of cloning network interfaces to configure, as well
...
as normal interfaces.
2000-07-20 19:43:10 +00:00
lukem
47a3878257
reenable stop_cmd now that network doesn't get run at shutdown
2000-07-17 15:25:42 +00:00
lukem
db024b3733
add '# KEYWORD: shutdown' so that these scripts get run at shutdown time.
...
now, only scripts with the keyword `shutdown' will be run by /etc/rc.shutdown,
which speeds up shutdown and makes it more robust.
2000-07-17 15:24:48 +00:00
lukem
97d13d02c3
* remove bogus comment about aborting the boot if ipsec.conf doesn't exist;
...
this hasn't really worked and is probably too messy to resolve...
2000-07-17 13:10:54 +00:00
lukem
a8b1b91ded
* add support for `status'
...
* remove bogus comment about aborting the boot if ipf fails; this hasn't
been supported since the rc.d migration and is too messy to resolve...
2000-07-17 12:58:14 +00:00
lukem
d92b803c29
use "load_rc_config swap" for swap1 and swap2
2000-07-17 12:27:04 +00:00
lukem
8086bde7eb
share the same load_rc_config between the lkm* scripts
2000-07-15 02:30:18 +00:00
itojun
c60ddc2403
remove ip6defaultif configuration. because:
...
- ndp is in /usr/sbin, chokes on NFS-mounted /usr installation
- the option is just for IPv6 specification geek, not for normal users
2000-06-20 16:48:14 +00:00
enami
295358cfe1
Don't warn that $hostname isn't set if the hostname is already set.
2000-06-20 08:34:33 +00:00
itojun
c45b4229e4
typo
2000-06-14 03:24:16 +00:00
itojun
60cd90f104
TODO; should check /etc/ipsec.conf owner/permission,
...
while we don't have find(1).
2000-06-13 18:17:13 +00:00
itojun
00ded2c64e
add rc.d/ipsec for ipsec configuration. when enabled, it will inject
...
/etc/ipsec.conf into "setkey -f". PR 9609.
2000-06-13 16:29:53 +00:00
itojun
246f43dbbb
use ${start_precmd} to check duplicate sendmail.cf.
...
do not use "err" on failure, it is not that fatal (it's okay if we
don't start sendmail)
2000-06-13 15:53:03 +00:00
fvdl
75748efda9
Use load_rc_config
2000-06-09 14:14:44 +00:00
itojun
609377a40f
run sendmail under the following conditions:
...
- /etc/mail/sendmail.cf exists, no /etc/sendmail.cf
- /etc/mail/sendmail.cf exists, /etc/sendmail.cf same content as
/etc/mail/sendmail.cf
die in other cases. PR 10243.
2000-06-04 08:33:58 +00:00
fvdl
a5f38c029b
rpcbind uses a pidfile.
2000-06-03 00:17:17 +00:00
fvdl
02cd59a751
* Portmap is now called rpcbind.
...
* Add IPv6 RPC entries to inetd.conf (commented out by default, as the others)
* Add netconfig file, needed for TI-RPC code.
2000-06-02 22:54:08 +00:00
itojun
a7c4c34f96
refer PR 10100 for /etc/sendmail.cf check
2000-05-31 16:00:36 +00:00
bouyer
f5e3c48aad
Depends on quota; when quotached runs while NFS clients are writing,
...
bad things happens.
2000-05-29 07:10:41 +00:00
tron
e63bc36c7f
Call "load_rc_config()" earlier so that configuration variables are read
...
before command arguments are defined. Fixes PR bin/10220 by Ron Roskens.
2000-05-29 06:53:03 +00:00
hubertf
cdc1e0be32
/etc/dhclient.conf is *not* required for dhclient to run.
2000-05-26 20:44:17 +00:00
oster
4c318b5d41
At boot, initiate parity/mirror reconstruction as required.
...
This operation is backgrounded, and sequentially ordered.
2000-05-16 16:54:33 +00:00
tron
d683136c9f
Don't complain about existence of "/etc/sendmail.cf" if "sendmail" is
...
not set to "YES" in "/etc/rc.conf".
2000-05-15 06:16:04 +00:00
tron
24ad7fd36c
Add "wscons" to requirement list so that a tty used for syslog output
...
will be created before starting the syslog daemon.
2000-05-14 13:12:11 +00:00
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