freebsd-nq/etc/rc.d
Mike Makonnen 130112f793 Add a general mechanism for creating and applying
devfs(8) rules in rc(8). It is most useful for applying
rules to devfs(5) mount points in /dev or inside jails.
The following line of script is sufficient to
mount a relatively useful+secure devfs(5) in a jail:

	devfs_mount_jail /some/jail/dev

Some new shell routines available to scripts that source
rc.subr(5):
	o devfs_link		- Makes it a little easier to create symlinks
	o devfs_init_rulesets	- Create devfs(8) rulesets from devfs.rules
	o devfs_set_ruleset	- Set a ruleset to a devfs(5) mount
	o devfs_apply_ruleset	- Apply a ruleset to a devfs(5) mount
	o devfs_domount		- Mount devfs(5) and apply some ruleset
	o devfs_mount_jail	- Mount devfs(5) and apply a ruleset
				  appropriate to jails.

Additional rulesets can be specified in /etc/devfs.rules.
If the devfs_system_ruleset variable is defined in rc.conf
and it contains the name of a ruleset defined in /etc/defaults/devfs.rules
or user supplied rulesets in /etc/devfs.rules then that ruleset will
be applied to /dev at startup by the /etc/rc.d/devfs script. It can
also be applied post-startup:

	/etc/rc.d/devfs start

This is a more flexible mechanism than the previous method of using
/etc/devfs.conf. However, that method is still available.

Note: since devfs(8) doesn't provide any way for creating symlinks
as part of a ruleset, anyone wishing to create symlinks in a devfs(5)
as part of the bootup sequence will still have to rely on /etc/devfs.conf.
2003-08-20 06:15:18 +00:00
..
abi Move securelevel further back in the boot order. 2003-05-05 15:38:41 +00:00
accounting Fix style bugs: 2002-10-12 10:31:31 +00:00
addswap Fix style bugs: 2002-10-12 10:31:31 +00:00
adjkerntz o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
altqd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
amd Fix style bugs: 2002-10-12 10:31:31 +00:00
apm o Have rc.d/apm report on the status of apm. 2003-06-09 17:44:30 +00:00
apmd o Have rc.d/apm report on the status of apm. 2003-06-09 17:44:30 +00:00
archdep Back out the amd64 additions. Hammer doesn't do APM, and we certainly aren't 2003-05-06 00:09:51 +00:00
atm1 Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add support 2003-07-28 13:30:42 +00:00
atm2 Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add support 2003-07-28 13:30:42 +00:00
atm3 Convert the atm{2,3}.sh rc scripts to normal rc.d scripts. Add support 2003-07-28 13:30:42 +00:00
bgfsck Set appropriate tag "fsck" to logger(1) for background fsck messages. 2003-04-23 15:38:02 +00:00
bootconf.sh Fix style bugs: 2002-10-12 10:31:31 +00:00
bootparams Convert from ${CMD_OSTYPE} to ${OSTYPE}. This saves a shell invocation on 2002-09-06 16:18:05 +00:00
ccd Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
cleanvar Make sure ipmon is run after cleaning up in /var. Otherwise, 2003-07-14 13:02:36 +00:00
cleartmp Fix style bugs: 2002-10-12 10:31:31 +00:00
cron Move securelevel further back in the boot order. 2003-05-05 15:38:41 +00:00
DAEMON s/dependancy/dependency/ 2002-10-12 13:49:21 +00:00
devd Start devd after the networking stuff, but before we mount the 2003-02-12 04:22:40 +00:00
devfs Add a general mechanism for creating and applying 2003-08-20 06:15:18 +00:00
dhclient Always start dhclient in the background. 2003-07-28 08:15:52 +00:00
dhcpd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
dhcrelay Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
diskless kenv moved from /usr/bin/ to /bin/. 2003-02-15 16:34:14 +00:00
dmesg Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
downinterfaces Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
dumpon Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
early.sh o Add support for running /etc/rc.early 2003-04-24 08:27:29 +00:00
fsck Fix style bugs: 2002-10-12 10:31:31 +00:00
gated Import the NetBSD 1.5 RC system. 2001-06-16 07:16:14 +00:00
gbde Add a script to automatically attach gbde devices found in fstab 2003-06-17 02:56:29 +00:00
hostname tty whacking should occur early, but not so early that the 2003-07-30 18:53:59 +00:00
ifwatchd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
inetd Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
initdiskless Correct typo in Matt's name. 2003-08-07 21:06:32 +00:00
initrandom Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
ip6fw o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
ipfilter tty whacking should occur early, but not so early that the 2003-07-30 18:53:59 +00:00
ipfs Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc. 2003-04-24 08:20:47 +00:00
ipfw Add -dynamic to natd if dhcp is used for the natd interface. 2003-07-27 20:34:30 +00:00
ipmon Make sure ipmon is run after cleaning up in /var. Otherwise, 2003-07-14 13:02:36 +00:00
ipnat o Make the 'Ip-filter module loaded' messages informational 2003-04-30 02:54:17 +00:00
ipsec tty whacking should occur early, but not so early that the 2003-07-30 18:53:59 +00:00
ipxrouted Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
isdnd Move a period out of an if... clause. The period terminates the 2003-07-15 12:39:37 +00:00
jail Quote $jail_exec with double-quote to avoid "[: unexpected operator". 2003-08-19 03:49:30 +00:00
kadmind Initiate KerberosIV de-orbit burn. Disconnect the /etc configs. 2003-03-08 09:50:11 +00:00
kdc Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
kerberos Initiate KerberosIV de-orbit burn. Disconnect the /etc configs. 2003-03-08 09:50:11 +00:00
keyserv Clean up the scripts to use the new variables: 2002-08-14 05:44:32 +00:00
kldxref o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
kpasswdd s/kadmind5/kadmin/ 2003-05-06 02:28:03 +00:00
ldconfig Prepend /lib to the search order for libraries. 2003-08-17 07:49:11 +00:00
lkm1 Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
lkm2 Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
lkm3 Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
local Fix silly typo: loacal --> local. 2002-10-17 23:46:32 +00:00
localdaemons Rename localdaemons to localpkg. 2003-08-06 00:35:13 +00:00
localpkg Rename localdaemons to localpkg. 2003-08-06 00:35:13 +00:00
lockd Add a missing OR. 2003-01-20 18:57:16 +00:00
LOGIN s/dependancy/dependency/ 2002-10-12 13:49:21 +00:00
lomac Update rc scripts to load mac_lomac instead of lomac. 2002-11-26 17:51:03 +00:00
lpd Convert from ${CMD_OSTYPE} to ${OSTYPE}. This saves a shell invocation on 2002-09-06 16:18:05 +00:00
Makefile Rename localdaemons to localpkg. 2003-08-06 00:35:13 +00:00
mixerctl Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
mopd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
motd Have mktemp(1) construct the temporary file name for us instead 2003-06-30 22:06:26 +00:00
mountall Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
mountcritlocal Move networkfs_types from mountcritlocal into defaults/rc.conf as netfs_types. 2003-06-01 01:43:37 +00:00
mountcritremote Move networkfs_types from mountcritlocal into defaults/rc.conf as netfs_types. 2003-06-01 01:43:37 +00:00
mountd Fix style bugs: 2002-10-12 10:31:31 +00:00
moused Fix moused so you can use the stop command 2002-09-27 16:54:21 +00:00
mroute6d NETWORKING should also mean routing daemons are up. 2003-01-25 23:14:08 +00:00
mrouted o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
msgs Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
named Fix the named script to find the correct pid file for the 2003-01-12 04:53:54 +00:00
ndbootd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
netif tty whacking should occur early, but not so early that the 2003-07-30 18:53:59 +00:00
netoptions Rename localdaemons to localpkg. 2003-08-06 00:35:13 +00:00
network Fix typos (s/seperat/separat/ et al); add FreeBSD ID. 2002-08-12 10:04:32 +00:00
network1 Remove a debugging aid the crept in during the last commit. It doesn't 2003-06-06 13:00:43 +00:00
network2 o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
network3 o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
network_ipv6 o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
NETWORKING o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
newsyslog Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
nfsclient Fix style bugs: 2002-10-12 10:31:31 +00:00
nfsd Cleanup as many instances of rc.conf variable use before 2003-01-24 00:37:52 +00:00
nfslocking Add a missing OR. 2003-01-20 18:57:16 +00:00
nfsserver Fix style bugs: 2002-10-12 10:31:31 +00:00
nisdomain Break out and rewrite the network setup scripts. 2003-04-18 17:51:54 +00:00
ntpd Fix style bugs: 2002-10-12 10:31:31 +00:00
ntpdate Fix style bugs: 2002-10-12 10:31:31 +00:00
othermta Make the othermta script DTRT when an mta startup script is not specified. 2002-08-09 17:45:04 +00:00
pccard Now that we don't have the NODEVFS case, we can just check to see if a 2003-02-12 04:12:23 +00:00
pcvt Fix style bugs: 2002-10-12 10:31:31 +00:00
poffd Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
postfix Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
ppp o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
ppp-user o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
pppoed Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
pwcheck Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
quota Fix style bugs: 2002-10-12 10:31:31 +00:00
racoon Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
raidframe Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
random o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
rarpd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
rbootd Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
rcconf.sh Read /etc/rc.subr. 2003-01-25 20:02:35 +00:00
resolv kenv moved from /usr/bin/ to /bin/. 2003-02-15 16:34:14 +00:00
root Wrap test case in an if statement to avoid crunching a return value. 2002-10-31 02:06:05 +00:00
route6d NETWORKING should also mean routing daemons are up. 2003-01-25 23:14:08 +00:00
routed o Hookup rc.d/routing and rc.d/netoptions 2003-06-29 05:15:57 +00:00
routing Now that routes for IP over ATM may look much more complex than before, 2003-08-14 15:27:32 +00:00
rpcbind Convert from ${CMD_OSTYPE} to ${OSTYPE}. This saves a shell invocation on 2002-09-06 16:18:05 +00:00
rtadvd Cleanup as many instances of rc.conf variable use before 2003-01-24 00:37:52 +00:00
rtsold Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
rwho Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
savecore Convert from ${CMD_OSTYPE} to ${OSTYPE}. This saves a shell invocation on 2002-09-06 16:18:05 +00:00
screenblank Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
securelevel Move securelevel further back in the boot order. 2003-05-05 15:38:41 +00:00
sendmail Fix style bugs: 2002-10-12 10:31:31 +00:00
serial Catch up with 1995(?) for modem speeds (use 57600 instead of 115200 for 2003-05-05 03:26:50 +00:00
SERVERS s/dependancy/dependency/ 2002-10-12 13:49:21 +00:00
sppp o Hook the new files up to the build. 2003-04-18 17:55:05 +00:00
sshd Not everyone uses the base system sshd. They can use the sshd_program 2003-07-13 01:49:07 +00:00
statd Add a missing OR. 2003-01-20 18:57:16 +00:00
swap1 Convert from ${CMD_OSTYPE} to ${OSTYPE}. This saves a shell invocation on 2002-09-06 16:18:05 +00:00
swap2 Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
syscons Fix syscons so it actually does start. 2002-09-09 22:40:34 +00:00
sysctl Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc. 2003-04-24 08:20:47 +00:00
sysdb Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
syslogd test -h is deprecated; use -L instead. 2002-10-01 13:29:45 +00:00
timed Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
tmp kenv moved from /usr/bin/ to /bin/. 2003-02-15 16:34:14 +00:00
ttys tty whacking should occur early, but not so early that the 2003-07-30 18:53:59 +00:00
usbd Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
var kenv moved from /usr/bin/ to /bin/. 2003-02-15 16:34:14 +00:00
vinum Merge in all the changes that Mike Makonnen has been maintaining for a 2002-06-13 22:14:37 +00:00
virecover The vi(1) recovery script cannot send mail regarding interrupted 2003-05-05 09:53:32 +00:00
watchdogd - Add a software watchdog facility. 2003-06-26 09:50:52 +00:00
wscons Fix style bugs: 2002-10-12 10:31:31 +00:00
xdm Import the NetBSD 1.5 RC system. 2001-06-16 07:16:14 +00:00
xfs Sync with NetBSD's mainline. 2002-06-21 19:07:21 +00:00
ypbind Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00
yppasswdd Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00
ypserv Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00
ypset Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00
ypupdated Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00
ypxfrd Be specific about which domainname is not set. It seems the man page 2003-07-09 03:21:03 +00:00