- Add descriptions to most of the rc scripts. Those are mostly taken from their

daemon's manpage and probably improved.
- Consistently use "filesystem" not "file system".

Approved by:	bapt, brueffer
Differential Revision:	D452
This commit is contained in:
Lars Engels
2016-04-23 16:10:54 +00:00
parent 013cb2e961
commit 6c1a5e837d
140 changed files with 145 additions and 8 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
# PROVIDE: FILESYSTEMS
# REQUIRE: root mountcritlocal cleanvar zfs
# This is a dummy dependency, for services which require file systems
# This is a dummy dependency, for services which require filesystems
# to be mounted before starting. It also serves as the default early /
# late divider; after this point, rc.d directories are rescanned to
# catch scripts from other file systems than /.
# catch scripts from other filesystems than /.
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="abi"
desc="Enable foreign ABIs"
start_cmd="${name}_start"
stop_cmd=":"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="amd"
desc="Automatically mount filesystems"
rcvar="amd_enable"
command="/usr/sbin/${name}"
start_precmd="amd_precmd"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="apm"
desc="Advanced power management"
rcvar="apm_enable"
start_precmd="apm_precmd"
command="/usr/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="apmd"
desc="Advanced power management daemon"
rcvar="apmd_enable"
command="/usr/sbin/${name}"
start_precmd="apmd_prestart"
+1
View File
@@ -13,6 +13,7 @@
. /etc/rc.subr
name="auditd"
desc="Audit daemon"
stop_cmd="auditd_stop"
command="/usr/sbin/${name}"
rcvar="auditd_enable"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="auditdistd"
desc="Audit trail files distribution daemon"
rcvar="${name}_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/${name}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="automountd"
desc="daemon handling autofs mount requests"
rcvar="autofs_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/${name}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="autounmountd"
desc="daemon unmounting automounted filesystems"
rcvar="autofs_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/${name}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="background_fsck"
desc="Run fsck in background"
rcvar="background_fsck"
start_cmd="bgfsck_start"
start_precmd="bgfsck_start_precmd"
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="bluetooth"
desc="Bluetooth setup script"
rcvar=
start_cmd="bluetooth_start"
stop_cmd="bluetooth_stop"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="bootparamd"
desc="Boot parameter daemon"
rcvar="bootparamd_enable"
required_files="/etc/bootparams"
command="/usr/sbin/${name}"
+1
View File
@@ -33,6 +33,7 @@
. /etc/network.subr
name="bridge"
desc="Network bridge setup"
start_cmd="bridge_start"
stop_cmd="bridge_stop"
cmd=""
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="bsnmpd"
desc="Simple and extensible SNMP daemon"
rcvar="bsnmpd_enable"
command="/usr/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="bthidd"
desc="Bluetooth HID daemon"
rcvar="bthidd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -9,6 +9,7 @@
. /etc/rc.subr
name="ccd"
desc"Concatenated disks setup"
start_cmd="ccd_start"
stop_cmd=":"
+1
View File
@@ -9,6 +9,7 @@
. /etc/rc.subr
name="cleanvar"
desc="Purge /var directory"
rcvar="cleanvar_enable"
start_precmd="${name}_prestart"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="cleartmp"
desc="Purge /tmp directory"
# Disguise rcvar for the start method to run irrespective of its setting.
rcvar1="clear_tmp_enable"
start_cmd="${name}_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="cron"
desc="Daemon to execute scheduled commands"
rcvar="cron_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="ctld"
desc="CAM Target Layer / iSCSI target daemon"
rcvar="ctld_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="ddb"
desc="DDB kernel debugger"
rcvar="ddb_enable"
command="/sbin/${name}"
start_precmd="ddb_prestart"
+1
View File
@@ -13,6 +13,7 @@
. /etc/network.subr
name="defaultroute"
desc="Setup default router"
start_cmd="defaultroute_start"
stop_cmd=":"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="devd"
desc="Device state change daemon"
rcvar="devd_enable"
command="/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="devfs"
desc="Device filesystem"
start_cmd='devfs_start'
stop_cmd=':'
+1
View File
@@ -12,6 +12,7 @@
ifn="$2"
name="dhclient"
desc="Dynamic Host Configuration Protocol (DHCP) client"
rcvar=
pidfile="/var/run/${name}.${ifn}.pid"
start_precmd="dhclient_prestart"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="dmesg"
desc="Save kernel boot messages to disk"
rcvar="dmesg_enable"
dmesg_file="/var/run/dmesg.boot"
start_cmd="do_dmesg"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="dumpon"
desc="Dump kernel corefiles from swap to disk"
start_cmd="dumpon_start"
stop_cmd="dumpon_stop"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="fsck"
desc="Run file system checks"
start_cmd="fsck_start"
stop_cmd=":"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ftpproxy"
desc="Internet File Transfer Protocol proxy daemon"
rcvar="ftpproxy_enable"
command="/usr/sbin/ftp-proxy"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ftpd"
desc="Internet File Transfer Protocol daemon"
rcvar="ftpd_enable"
command="/usr/libexec/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -12,6 +12,7 @@
. /etc/rc.subr
name="gbde"
desc="GEOM Based Disk Encryption"
start_precmd="find_gbde_devices start"
stop_precmd="find_gbde_devices stop"
start_cmd="gbde_start"
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="geli"
desc="GELI disk encryption"
start_precmd='[ -n "$(geli_make_list)" ]'
start_cmd="geli_start"
stop_cmd="geli_stop"
+1
View File
@@ -34,6 +34,7 @@
. /etc/rc.subr
name="geli2"
name="GELI disk encryption"
start_cmd="geli2_start"
stop_cmd=":"
+1
View File
@@ -41,6 +41,7 @@
. /etc/rc.subr
name="growfs"
desc="Grow root partition to fill device"
start_cmd="growfs_start"
stop_cmd=":"
rcvar="growfs_enable"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name=gssd
desc="Generic Security Services Daemon"
rcvar=gssd_enable
load_rc_config $name
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="hastd"
desc="Highly Available Storage daemon"
rcvar="hastd_enable"
pidfile="/var/run/${name}.pid"
command="/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="hcsecd"
desc="Control link keys and PIN codes for Bluetooth devices"
rcvar="hcsecd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="hostapd"
desc="Authenticator for IEEE 802.11 networks"
command="/usr/sbin/${name}"
ifn="$2"
+1
View File
@@ -35,6 +35,7 @@
. /etc/rc.subr
name="hostid"
desc="Generate a unique host ID"
start_cmd="hostid_start"
stop_cmd=":"
reset_cmd="hostid_reset"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="hostid_save"
desc="Save unique host ID to disk"
start_cmd="hostid_save"
stop_cmd=":"
rcvar="hostid_enable"
+1
View File
@@ -34,6 +34,7 @@
. /etc/network.subr
name="hostname"
desc="Set the system\'s hostname"
start_cmd="hostname_start"
stop_cmd=":"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="inetd"
desc="Internet \"super-server\""
rcvar="inetd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -12,6 +12,7 @@
. /etc/network.subr
name="ip6addrctl"
desc="configure address selection policy for IPv6 and IPv4"
rcvar="ip6addrctl_enable"
start_cmd="ip6addrctl_start"
stop_cmd="ip6addrctl_stop"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ipfilter"
desc="IP packet filter"
rcvar="ipfilter_enable"
load_rc_config $name
stop_precmd="test -f ${ipfilter_rules} -o -f ${ipv6_ipfilter_rules}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ipfs"
desc="Saves and restores information for NAT and state tables"
rcvar="ipfs_enable"
start_cmd="ipfs_start"
stop_cmd="ipfs_stop"
+1
View File
@@ -11,6 +11,7 @@
. /etc/network.subr
name="ipfw"
desc="Firewall, traffic shaper, packet scheduler, in-kernel NAT"
rcvar="firewall_enable"
start_cmd="ipfw_start"
start_precmd="ipfw_prestart"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="ipmon"
desc="Monitors /dev/ipl for logged packets"
rcvar="ipmon_enable"
command="/sbin/${name}"
start_precmd="ipmon_precmd"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ipnat"
desc="user interface to the NAT subsystem"
rcvar="ipnat_enable"
load_rc_config $name
start_cmd="ipnat_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="ipsec"
desc="Internet Protocol Security protocol"
rcvar="ipsec_enable"
start_precmd="ipsec_prestart"
start_cmd="ipsec_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="iscsictl"
desc="iSCSI initiator management utility"
rcvar="iscsictl_enable"
command="/usr/bin/${name}"
command_args="${iscsictl_flags}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="iscsid"
desc="iSCSI initiator daemon"
rcvar="iscsid_enable"
pidfile="/var/run/${name}.pid"
command="/usr/sbin/${name}"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="jail"
desc="Manage system jails"
rcvar="jail_enable"
start_cmd="jail_start"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name=kadmind
desc="Server for administrative access to Kerberos database"
rcvar=${name}_enable
required_vars=kdc_enable
start_precmd=${name}_start_precmd
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name=kdc
desc="Kerberos 5 server"
rcvar=${name}_enable
start_precmd=${name}_start_precmd
+1
View File
@@ -13,6 +13,7 @@
. /etc/rc.subr
name="keyserv"
desc="Server for storing private encryption keys"
rcvar="keyserv_enable"
command="/usr/sbin/${name}"
start_precmd="keyserv_prestart"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name=kfd
desc="Receive forwarded tickets"
rcvar=${name}_enable
start_precmd=${name}_start_precmd
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="kld"
desc="Load kernel modules"
start_cmd="${name}_start"
stop_cmd=':'
+1
View File
@@ -12,6 +12,7 @@
rcvar="kldxref_enable"
name="kldxref"
desc="Generate hints for the kernel loader"
stop_cmd=":"
start_cmd="kldxref_start"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name=kpasswdd
desc="Kerberos 5 password changing"
rcvar=${name}_enable
required_vars=kdc_enable
start_precmd=${name}_start_precmd
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ldconfig"
desc="Configure the shared library cache"
ldconfig_command="/sbin/ldconfig"
start_cmd="ldconfig_start"
stop_cmd=":"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="local"
desc="Run /etc/rc.local and /etc/shutdown.local"
start_cmd="local_start"
stop_cmd="local_stop"
+1 -1
View File
@@ -11,7 +11,7 @@
. /etc/rc.subr
name="local_unbound"
desc="local caching forwarding resolver"
desc="Local caching forwarding resolver"
rcvar="local_unbound_enable"
command="/usr/sbin/unbound"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="localpkg"
desc="Run local init scripts"
start_cmd="pkg_start"
stop_cmd="pkg_stop"
+1
View File
@@ -12,6 +12,7 @@
. /etc/rc.subr
name="lockd"
desc="NFS file locking daemon"
rcvar=rpc_lockd_enable
command="/usr/sbin/rpc.${name}"
start_precmd='lockd_precmd'
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="lpd"
desc="Line printer spooler daemon"
rcvar="lpd_enable"
command="/usr/sbin/${name}"
required_files="/etc/printcap"
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="mdconfig"
desc="Create and control memory disks"
stop_cmd="mdconfig_stop"
start_cmd="mdconfig_start"
start_precmd='[ -n "${_mdconfig_list}" ]'
+1
View File
@@ -34,6 +34,7 @@
. /etc/rc.subr
name="mdconfig2"
desc="Create and control memory disks"
stop_cmd="mdconfig2_stop"
start_cmd="mdconfig2_start"
start_precmd='[ -n "${_mdconfig2_list}" ]'
+1
View File
@@ -34,6 +34,7 @@
. /etc/rc.subr
name="mixer"
desc="Save and restore soundcard mixer values"
rcvar="mixer_enable"
stop_cmd="mixer_stop"
start_cmd="mixer_start"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="motd"
desc="Update /etc/motd"
rcvar="update_motd"
start_cmd="motd_start"
stop_cmd=":"
+2 -1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="mountcritlocal"
desc="Mount critical local filesystems"
start_cmd="mountcritlocal_start"
stop_cmd=sync
@@ -28,7 +29,7 @@ mountcritlocal_start()
esac
# Mount everything except nfs filesystems.
check_startmsgs && echo -n 'Mounting local file systems:'
check_startmsgs && echo -n 'Mounting local filesystems:'
mount_excludes='no'
for i in ${netfs_types}; do
fstype=${i%:*}
+3 -2
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="mountcritremote"
desc="Mount critical remote filesystems"
stop_cmd=":"
start_cmd="mountcritremote_start"
start_precmd="mountcritremote_precmd"
@@ -40,7 +41,7 @@ mountcritremote_start()
'')
;;
*)
echo -n 'Mounting NFS file systems:'
echo -n 'Mounting NFS filesystems:'
mount -a -t nfs
echo '.'
;;
@@ -63,7 +64,7 @@ mountcritremote_start()
case "`mount -d -a -t ${fstype}`" in
*mount_${fstype}*)
echo -n "Mounting ${fsdecr} file systems:"
echo -n "Mounting ${fsdecr} filesystems:"
mount -a -t ${fstype}
echo '.'
;;
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="mountd"
desc="Service remote NFS mount requests"
rcvar="mountd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+2 -1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="mountlate"
desc="Mount filesystems with \"late\" option from /etc/fstab"
start_cmd="mountlate_start"
stop_cmd=":"
@@ -21,7 +22,7 @@ mountlate_start()
# Mount "late" filesystems.
#
err=0
echo -n 'Mounting late file systems:'
echo -n 'Mounting late filesystems:'
mount -a -L
err=$?
echo '.'
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="moused"
desc="Mouse daemon"
rcvar="moused_enable"
command="/usr/sbin/${name}"
start_cmd="moused_start"
+1
View File
@@ -9,6 +9,7 @@
. /etc/rc.subr
name="msgs"
desc="Make a bounds file for msgs(1)"
start_cmd="msgs_start"
stop_cmd=":"
+1
View File
@@ -10,6 +10,7 @@
. /etc/network.subr
name="natd"
desc="Network Address Translation daemon"
rcvar="natd_enable"
command="/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -34,6 +34,7 @@
. /etc/network.subr
name="netif"
desc="Network interface setup"
rcvar="${name}_enable"
start_cmd="netif_start"
stop_cmd="netif_stop"
+1
View File
@@ -12,6 +12,7 @@
. /etc/network.subr
name="netoptions"
desc="Network options setup"
start_cmd="netoptions_start"
stop_cmd=:
+1
View File
@@ -21,6 +21,7 @@
. /etc/rc.subr
name="netwait"
desc="Wait for network devices or the network being up"
rcvar="netwait_enable"
start_cmd="${name}_start"
+1
View File
@@ -9,6 +9,7 @@
. /etc/rc.subr
name="newsyslog"
desc="Logfile rotation"
rcvar="newsyslog_enable"
required_files="/etc/newsyslog.conf"
command="/usr/sbin/${name}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="nfscbd"
desc="NFSv4 client side callback daemon"
rcvar="nfscbd_enable"
command="/usr/sbin/${name}"
sig_stop="USR1"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="nfsclient"
desc="NFS client setup"
rcvar="nfs_client_enable"
start_cmd="nfsclient_start"
stop_cmd="unmount_all"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="nfsd"
desc="Remote NFS server"
rcvar="nfs_server_enable"
command="/usr/sbin/${name}"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="nfsuserd"
desc="Load user and group information into the kernel for NFSv4 services and support manage-gids for all NFS versions"
rcvar="nfsuserd_enable"
command="/usr/sbin/${name}"
sig_stop="USR1"
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="nisdomain"
desc="Set NIS domain name"
start_cmd="nisdomain_start"
stop_cmd=":"
+1
View File
@@ -19,6 +19,7 @@
. /etc/rc.subr
name="nscd"
desc="Name-service caching daemon"
rcvar="nscd_enable"
command=/usr/sbin/nscd
+1
View File
@@ -33,6 +33,7 @@
. /etc/rc.subr
name="nsswitch"
desc="Name-service switch"
start_cmd="nsswitch_start"
stop_cmd=":"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="ntpd"
desc="Network Time Protocol daemon"
rcvar="ntpd_enable"
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ntpdate"
desc="Set the date and time via NTP"
rcvar="ntpdate_enable"
stop_cmd=":"
start_cmd="ntpdate_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="pf"
desc="Packet filter"
rcvar="pf_enable"
load_rc_config $name
start_cmd="pf_start"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="pflog"
desc="Packet filter logging interface"
rcvar="pflog_enable"
command="/sbin/pflogd"
pidfile="/var/run/pflogd.pid"
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="pfsync"
desc="Packet filter state table sychronisation interface"
rcvar="pfsync_enable"
start_precmd="pfsync_prestart"
start_cmd="pfsync_start"
+1
View File
@@ -15,6 +15,7 @@
. /etc/rc.subr
name="power_profile"
desc="Modify the power profile based on AC line state"
stop_cmd=':'
LOGGER="logger -t power_profile -p daemon.notice"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="powerd"
desc="Modify the power profile based on AC line state"
rcvar="powerd_enable"
command="/usr/sbin/${name}"
stop_postcmd=powerd_poststop
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="ppp"
desc="Point to Point Protocol"
rcvar="ppp_enable"
command="/usr/sbin/${name}"
start_cmd="ppp_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="pppoed"
desc="Handle incoming PPP over Ethernet connections"
rcvar="pppoed_enable"
start_cmd="pppoed_start"
# XXX stop_cmd will not be straightforward
+1
View File
@@ -10,6 +10,7 @@
. /etc/rc.subr
name="pwcheck"
desc="Check password file correctness"
start_cmd="pwcheck_start"
stop_cmd=":"
+1
View File
@@ -13,6 +13,7 @@
. /etc/rc.subr
name="quota"
desc="Enable/check the quotas"
rcvar="quota_enable"
load_rc_config $name
start_cmd="quota_start"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="random"
desc="Harvest and save entropy for random device"
start_cmd="random_start"
stop_cmd="random_stop"
+1
View File
@@ -11,6 +11,7 @@
. /etc/rc.subr
name="rarpd"
desc="Reverse ARP daemon"
rcvar="rarpd_enable"
command="/usr/sbin/${name}"
required_files="/etc/ethers"

Some files were not shown because too many files have changed in this diff Show More