Commit Graph

166 Commits

Author SHA1 Message Date
asami
bde447d289 Move nologin from /etc to /var/run. This means one less file that has
to be written to /etc.

The only essential change is in paths.h, so any third-party software
written correctly will pick it up in the next rebuild.

Reviewed by:	the committers list (actually an old version)
1999-01-11 09:07:42 +00:00
n_hibma
02472a4767 Added starting of usbd 1999-01-10 22:06:22 +00:00
peter
cd5d3a5df5 We load kld's in preference to LKM's, these do not need the root fs to be
read/write to load.
1999-01-06 14:01:52 +00:00
dillon
3d6f93c551 Reviewed by: cvs-current
Commit changes to rc and rc.local, removing the remaining minimal
    functionality of rc.local into rc and commenting it out of rc.local
    prior to the deletion of rc.local from the CVS tree.
1998-12-12 23:04:21 +00:00
jb
9e5ec90f20 Should be sysctl -n. Yesterday wasn't one of my better days. Doh.
Reported by: Ben Smithurst & Makoto Matsushita
1998-12-11 08:25:12 +00:00
jb
8a08015602 Add a test for hw.machine == i386 before trying to run ldconfig for
legacy aout support.
1998-12-10 08:06:59 +00:00
des
ea04b2f148 Hand me the pointy hat, and make it big. 1998-10-09 17:11:14 +00:00
des
8aeb1f4ecc Remove all references to tickadj(8) from rc, rc.conf and rc.conf.5.
Disable building tickadj(8) by removing util from SUBDIR in the xntpd
Makefile. Note that the sources are still there and tickadj can still
be built and installed by doing:

# cd /usr/src/usr.sbin/xntpd/util
# make all install

There are enough references to tickadj in e.g. the xntpd documentation
(not to mention the sysctl variables it uses etc.) that I don't feel
up to implementing the final solution right now.

Kinda-approved-by:	phk
1998-10-08 18:47:30 +00:00
cracauer
5461367ad8 Put guard shells around stuff started from $local_startup. If you type
SIGINT (C-c), you'll get control passed to the next script even if
the current one blocks signals. The child is not killed, though.
1998-09-30 14:44:57 +00:00
brian
75e7cbc736 Spaces -> tabs, don't use touch before it's available
Pointed out by: bde
1998-09-16 22:42:56 +00:00
jdp
a14a068430 Fix up the boot-time ldconfig handling to deal with dual object
file formats.  I have added a new rc.conf variable ${ldconfig_paths_aout}
which is like ${ldconfig_paths}, but only for a.out shared libraries.

On a "standard" ELF system, the ELF ldconfig path is taken from
${ldconfig_paths}, while the a.out ldconfig path is taken from
${ldconfig_paths_aout}.

On a not-yet-converted a.out system, only the a.out ldconfig path
is set, and it is taken from ${ldconfig_paths_aout}.  If that
variable is unset, /etc/rc defaults it to the value of ${ldconfig_paths},
on the assumption that the system's "/etc/rc.conf" file hasn't been
updated.
1998-09-16 05:42:38 +00:00
sos
b3bc5d421a Make /dev/vga a softlink to /dev/ttyv0 under DEVFS using /etc/rc.devfs
Remove the hack from syscons that added a /dev/vga node in DEVFS
it broke root acces on ttyv0 because dev_mkdb screwed up.
1998-09-14 09:14:46 +00:00
jraynard
03b3b20979 Disable kernel_secure_level unless explicitly set in rc.conf. Previously,
it was enabled unless explicitly unset, creating a pitfall for people
like me who upgraded /etc/rc without upgrading /etc/rc.conf.
1998-09-09 22:27:21 +00:00
cracauer
fd49b92e04 Remove X11 lock files at boot time even if $clear_tmp_enable is not set.
PR:		conf/7366
Submitted by:	Thomas David Rivers rivers@dignus.com
1998-09-07 17:18:36 +00:00
jdp
d166beb76e Explicitly pass the "-aout" option to ldconfig, until I've had a
chance to work out a better scheme to handle the separate
invocations necessary for a.out and ELF.
1998-09-05 04:27:35 +00:00
gpalmer
91d93c9726 Don't try to run ldconfig if it doesn't exist. Useful for elf platforms. 1998-08-24 07:11:48 +00:00
phk
82dd2415b5 Fix my blunder in my previous commit here. 1998-08-20 11:22:52 +00:00
phk
2c8163b83d Add "Mounting NFS file systems" progress indicator
PR:		7605
Reviewed by:	phk
Submitted by	Nick Hibma <nick.hibma@jrc.it>:
1998-08-14 06:49:05 +00:00
brian
652b094a95 Don't blat /var/run and /var/spool/lock *after* network_pass1()
unless /var is nfs-mounted.
This was removing ppps device lock (when ppp's started in
/etc/start_if.tun0 in -ddial or -dedicated mode) and allowing
other programs (such as mgetty) to confuse ppp by playing with
the modem while ppp's using it.

People that nfs-mount /var had better not start ppp in this
way....
1998-08-10 19:53:50 +00:00
nectar
0e82fbcb6c make a bounds file for msgs(1) if there isn't one already
PR:		bin/3023
Reviewed by:	jkh@FreeBSD.ORG
1998-07-28 01:15:12 +00:00
jkoshy
3d7fcf97cd Add rc.conf option to set kernel security level and modify "/etc/rc" to
use this.

Requested by: max, andreas

Note: This change just provides a convenient way to exercise existing
functionality.  Whether `kern.securelevel' is effective in increasing
system security is another issue, and one that has been well thrashed
out in the lists.
1998-06-22 06:34:12 +00:00
phk
cf8ca96070 Cut through the discussions and settle the issue: Everything in /var/run
is blown away at boot.  If sudo or other programs needs directories, they
had better make them in /usr/local/etc/rc.d/mumble.sh

PR:		4138 5619 6793
1998-06-02 11:02:16 +00:00
sos
bc60c8025e ELF preparation step 2:
Move a.out libraries to /usr/lib/aout to make space for ELF libs.
Make rtld usr /usr/lib/aout as default library path.
Make ldconfig reject /usr/lib as an a.out library path.
Fix various Makefiles for LIBDIR!=/usr/lib breakage.

This will after a make world & reboot give a system that no
longer uses /usr/lib/*, infact one could remove all the old
libraries there, they are not used anymore.

We are getting close to an ELF make world, but I'll let this
all settle for a week or two...
1998-05-26 20:12:56 +00:00
joerg
f89c1b3c98 Start syslogd before savecore, so savecore's messages will be logged
properly.  Only users of 4 MB machines might not want it this way (to
prevent accidentally clobbering the coredump), but they are somewhat
in the minority these days.
1998-01-08 17:08:22 +00:00
steve
7be657e8a3 Add a ldconfig_paths variable that specifies the shared library paths
to be given to ldconfig(8).

PR:		5178
Submitted by:	Evan Champion <evanc@synapse.net>
1997-12-27 19:46:54 +00:00
danny
edab3be997 Back out last commit re dmesg.boot 1997-12-09 10:06:49 +00:00
danny
ee28c6d757 Make rc record boottime dmesg to /var/log/dmesg.boot, so the data
is preserved after it scrolls out of the dmesg buffer.
1997-12-09 07:22:04 +00:00
steve
2c2d3b0330 Resurrect a modified version of the /tmp clearing code from rev 1.119.
Enable this by setting clear_tmp_enable in rc.conf to YES.  Beware
there can be serious side-effects of enabling this, so use at you own
risk.

PR:		misc/4982, misc/5054
1997-11-16 12:52:17 +00:00
joerg
dc3fadf213 Unspam rev 1.114 that got spammed when someone commited the rc.conf
changes: drop `savecore_enable' now that our savecore obeyes the
minfree file.
1997-09-21 16:09:48 +00:00
brian
408c12b8a2 Change the not-specified-default for inetd & cron
to "enabled".  This will avoid breaking things for
idiots like me who update /etc/rc without paying
attention and updating rc.conf too.
1997-09-13 21:07:12 +00:00
brian
feaeba35cd Don't redirect "mount -t -o nfs" to null 1997-09-13 09:29:21 +00:00
joerg
5d172ee46e Ooops. Wrong branch, back out previous commit. 1997-08-17 15:02:34 +00:00
joerg
84fcbd4f79 MFC: rev 1.125, remove old PID files at startup 1997-08-17 14:58:57 +00:00
jkh
20d1b8751a Back out ld.so.conf change until the question is resolved. 1997-07-13 13:22:15 +00:00
jkh
5a0e63af19 Use /etc/ld.so.conf as a library path override, if it exists.
Submitted by:	Hans Zuidam <hans@brandinnovators.com>
1997-07-11 14:52:52 +00:00
pst
11cc829fae Execute rc.local in a subshell instead of sourcing it.
Requested by:	dima
1997-06-25 11:48:47 +00:00
dima
88fd3e3090 sh /etc/rc.local -> . /etc/rc.local 1997-06-25 03:12:12 +00:00
pst
8c2215a208 Add cron_enable and inetd_enable flags to rc.conf.
WARNING: don't update rc and forget to update rc.conf, or you won't be
able to telnet back into your box after a reboot.
1997-06-18 16:01:19 +00:00
ache
2414e1ba9b Remove /var/run/* now instead of *.pid 1997-06-04 20:02:57 +00:00
ache
681e15a00e Restore /var/run/*.pid cleaning, gated already moved off the way
and innd store its .pid inside its own directories
1997-06-04 19:20:04 +00:00
ache
7e94f25081 Back out /var/run/*.pid cleaning since some programms (like innd)
use .pid to detect crash
1997-06-02 10:21:12 +00:00
ache
51bc6497ca Add rm -f /var/run/*.pid to prevent random process killing due to
picking old .pid file
1997-06-01 23:33:00 +00:00
jkh
eca8c2300f Neaten up some things which were inconsistent, add a few more flags
to things which need them, general cleanup.
Submitted by:	Brian Somers <brian@awfulhak.org>
1997-05-19 07:46:51 +00:00
jkh
7a6376d97f Use full path to sendmail for security reasons.
Submitted by:	Ollivier Robert <roberto@keltia.freenix.fr>
1997-05-07 12:35:03 +00:00
jkh
07cd08d705 Add inetd_flags and way of passing ipfw a configuration file
(if firewall = "somefilename").

Fix typo fixes and URLs which were accidently nuked out of this
file (submitted by: soil@quick.net via PR#3501).

Submitted by:	"Danny J. Zerkel" <dzerkel@phofarm.com>
1997-05-05 07:08:31 +00:00
andreas
a9a4dc76d0 re-enabled: . /etc/rc.${arch}
PR:
Reviewed by:	bruce
Submitted by:
Obtained from:
1997-05-04 22:33:17 +00:00
andreas
55da57aff1 Fixed sourcing of /etc/etc.${arch}/rc.${arch} on startup.
PR:
Reviewed by:
Submitted by:
Obtained from:
1997-05-04 12:50:33 +00:00
jkh
af4383e1b6 Update the etc world from RELENG_2_2 which is now more up-to-date
(gotta get myself -current again, this is a drag).

Also-fixes-problems-noted-by: Wolfgang Helbig & Joerg Wunsch
1997-05-03 11:22:17 +00:00
jkh
925f2cb7ee Clean up the output a bit. 1997-05-01 05:57:29 +00:00
jkh
7be3f36014 Bring in rc file changes from -current. 1997-04-27 03:59:19 +00:00