Nespou¹tí se démony z /usr/local/etc/rc.d
Martin Drtina
razzi at narovinu.cz
Wed Sep 19 12:23:53 CEST 2007
Snažím se už delší dobu přijít na záhadu, proč se mi při startu spouští jen
jeden (postfix) z démonů v /usr/local/etc/rc.d, třebaže i pro všechny
ostatní existuje v rc.conf příslušná instrukce [aplikace]_enable="YES". Při
ručním spuštění, např. /usr/local/etc/rc.d/apache22 start to běží,
automaticky po startu ne.
V /etc/rc.conf jsem zapnul rc_debug, v logu žádný řádek s
/usr/local/etc/rc.d není, z čehož usuzuju, že při spouštění se v něm vůbec
nehledá. Můžete mě, prosím, navést, kam bych měl ubírat pozornost?
Díky
Martin
Níže přikládám další relevantní údaje, které mě k tomu napadají...
#uname -a
FreeBSD 6.2-STABLE FreeBSD 6.2-STABLE #3: Tue Sep 18 22:21:27 CEST 2007
root at freebsd.lan:/usr/obj/usr/src/sys/FREEBSD amd64
/var/log/messages
----------%<--------------------------
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno:
kern_securelevel_enable is set to NO.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
pcvt_precmd().
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: moused_enable is
set to YES.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: pid file (/var/run/moused.pid):
not readable.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
moused_start().
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
mixer_start().
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: inetd_enable is set
to NO.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: hostapd_enable is
set to NO.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
geli2_start().
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: ftpd_enable is set
to NO.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: bsnmpd_enable is
set to NO.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
bridge_start().
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: checkyesno: background_fsck is
set to YES.
Sep 19 11:15:13 freebsd root: /etc/rc: INFO: run_rc_command: evaluating
bgfsck_start().
----------%<--------------------------
/etc/rc.conf
rc_debug="YES"
defaultrouter="192.168.3.2"
font8x14="iso-8x14"
font8x16="iso-8x16"
font8x8="iso-8x8"
gateway_enable="YES"
hostname="freebsd.lan"
ifconfig_ed0="inet 192.168.3.6 netmask 255.255.255.0"
keymap="cs.latin2.qwertz"
moused_enable="YES"
moused_flags=""
moused_port="/dev/cuad0"
moused_type="microsoft"
webmin_ipfilter_enable="YES"
webmin_enable="YES"
nfs_client_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
syslogd_enable="YES"
syslogd_flags="-ss"
clear_tmp_enable="YES"
courier_authdaemond_enable="YES"
mysql_enable="YES"
mysql_dbdir="/var/db/mysql"
openvpn_enable="YES"
openvpn_if="tap bridge"
postfix_enable="YES"
spamd_enable="YES"
samba_enable="YES"
saslauthd_enable="YES"
snmpd_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
accounting_enable="YES"
named_enable="YES"
saver="star"
apache22_enable="YES"
ntpdate_flags="ntp.nic.cz"
ntpdate_enable="YES"
mrtg_daemon_enable="YES"
sa_spamd_enable="YES"
mysql_server_enable="YES"
router_flags="-q"
router="/sbin/routed"
router_enable="YES"
amd_enable="YES"
enable_quotas="YES"
inetd_enable="NO"
kern_securelevel_enable="NO"
freebsd# rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
rcorder: file `/usr/local/etc/rc.d/saslauthd' is before unknown provision
`imap'
/etc/rc.d/dumpon
/etc/rc.d/initrandom
/etc/rc.d/geli
/etc/rc.d/gbde
/etc/rc.d/encswap
/etc/rc.d/ccd
/etc/rc.d/swap1
/etc/rc.d/mdconfig
/etc/rc.d/ramdisk
/etc/rc.d/early.sh
/etc/rc.d/fsck
/etc/rc.d/root
/etc/rc.d/mountcritlocal
/etc/rc.d/var
/etc/rc.d/random
/etc/rc.d/adjkerntz
/etc/rc.d/atm1
rcorder: requirement `FILESYSTEMS' in file `/etc/rc.d/hostname' has no
providers.
/etc/rc.d/hostname
/etc/rc.d/ipfilter
/etc/rc.d/ipnat
/etc/rc.d/ipfs
/etc/rc.d/kldxref
/etc/rc.d/sppp
/etc/rc.d/addswap
/etc/rc.d/auto_linklocal
/etc/rc.d/sysctl
/etc/rc.d/serial
/etc/rc.d/pccard
/etc/rc.d/netif
/etc/rc.d/ip6addrctl
/etc/rc.d/atm2
/etc/rc.d/pfsync
/etc/rc.d/cleanvar
/etc/rc.d/pflog
/etc/rc.d/pf
/etc/rc.d/isdnd
/etc/rc.d/ppp
/etc/rc.d/routing
/etc/rc.d/ip6fw
/etc/rc.d/network_ipv6
/etc/rc.d/devd
/etc/rc.d/ipsec
/etc/rc.d/ipfw
/etc/rc.d/nsswitch
/etc/rc.d/mroute6d
/etc/rc.d/route6d
/etc/rc.d/mrouted
/etc/rc.d/routed
/etc/rc.d/NETWORKING
/etc/rc.d/mountcritremote
/etc/rc.d/accounting
/etc/rc.d/ldconfig
/etc/rc.d/devfs
/etc/rc.d/ipmon
/etc/rc.d/mdconfig2
/etc/rc.d/ramdisk-own
/etc/rc.d/newsyslog
/etc/rc.d/syslogd
/etc/rc.d/savecore
/etc/rc.d/archdep
/etc/rc.d/abi
/etc/rc.d/SERVERS
/etc/rc.d/named
/etc/rc.d/ntpdate
/etc/rc.d/rpcbind
/etc/rc.d/nfsclient
/etc/rc.d/nisdomain
/etc/rc.d/ypserv
/etc/rc.d/ypbind
/etc/rc.d/amd
/etc/rc.d/atm3
/etc/rc.d/auditd
/etc/rc.d/tmp
/etc/rc.d/cleartmp
/etc/rc.d/dmesg
/etc/rc.d/ike
/etc/rc.d/ipxrouted
/etc/rc.d/kerberos
/etc/rc.d/kadmind
/etc/rc.d/keyserv
/etc/rc.d/kpasswdd
/etc/rc.d/quota
/etc/rc.d/nfsserver
/etc/rc.d/mountd
/etc/rc.d/nfsd
/etc/rc.d/nfslocking
/etc/rc.d/pppoed
/etc/rc.d/pwcheck
/etc/rc.d/virecover
/etc/rc.d/DAEMON
/etc/rc.d/apm
/etc/rc.d/apmd
/etc/rc.d/bootparams
/etc/rc.d/hcsecd
/etc/rc.d/bthidd
/etc/rc.d/local
/etc/rc.d/lpd
/etc/rc.d/motd
/etc/rc.d/mountlate
/etc/rc.d/ntpd
/etc/rc.d/powerd
/etc/rc.d/rarpd
/etc/rc.d/rtadvd
/etc/rc.d/rwho
/etc/rc.d/sdpd
/etc/rc.d/timed
/etc/rc.d/ugidfw
/etc/rc.d/usbd
/etc/rc.d/yppasswdd
/usr/local/etc/rc.d/proftpd
rcorder: requirement `cupsd' in file `/usr/local/etc/rc.d/samba' has no
providers.
/etc/rc.d/resolv
/usr/local/etc/rc.d/samba
/etc/rc.d/LOGIN
/usr/local/etc/rc.d/webmin
/usr/local/etc/rc.d/snmptrapd
/usr/local/etc/rc.d/snmpd
/usr/local/etc/rc.d/saslauthd
/usr/local/etc/rc.d/sa-spamd
rcorder: requirement `slapd' in file `/usr/local/etc/rc.d/postfix' has no
providers.
/usr/local/etc/rc.d/mysql-server
/usr/local/etc/rc.d/postfix
/usr/local/etc/rc.d/openvpn
/etc/rc.d/bsnmpd
/usr/local/etc/rc.d/mrtg_daemon
/usr/local/etc/rc.d/courier-authdaemond
/usr/local/etc/rc.d/bridge.sh
/usr/local/etc/rc.d/apache22
/etc/rc.d/ypxfrd
/etc/rc.d/ypupdated
/etc/rc.d/ypset
/etc/rc.d/wpa_supplicant
/etc/rc.d/watchdogd
/etc/rc.d/syscons
/etc/rc.d/sshd
/etc/rc.d/sendmail
/etc/rc.d/cron
/etc/rc.d/jail
/etc/rc.d/localpkg
/etc/rc.d/netoptions
/etc/rc.d/securelevel
/etc/rc.d/power_profile
/etc/rc.d/pcvt
/etc/rc.d/othermta
/etc/rc.d/natd
/etc/rc.d/msgs
/etc/rc.d/moused
/etc/rc.d/mixer
/etc/rc.d/inetd
/etc/rc.d/hostapd
/etc/rc.d/geli2
/etc/rc.d/ftpd
/etc/rc.d/dhclient
/etc/rc.d/bridge
/etc/rc.d/bluetooth
/etc/rc.d/bgfsck
freebsd# ls -l /usr/local/etc/rc.d
total 38
-rwxr-xr-x 1 root wheel 4641 Sep 18 13:52 apache22
-rwxr-xr-x 1 root wheel 88 Sep 19 09:13 bridge.sh
-rwxr-xr-x 1 root wheel 1570 Aug 24 00:04 courier-authdaemond
-rwxr-xr-x 1 root wheel 919 Aug 27 17:31 mrtg_daemon
-rwxr-xr-x 1 root wheel 1659 Aug 27 17:32 mysql-server
-rwxr-xr-x 1 root wheel 3985 Sep 19 09:12 openvpn
-rwxr-xr-x 1 root wheel 1049 Aug 22 21:15 postfix
-rwxr-xr-x 1 root wheel 670 Aug 27 17:20 proftpd
-rwxr-xr-x 1 root wheel 678 Aug 27 17:32 sa-spamd
-rwxr-xr-x 1 root wheel 4388 Aug 26 09:57 samba
-rwxr-xr-x 1 root wheel 1088 Aug 23 23:39 saslauthd
-rwxr-xr-x 1 root wheel 1438 Sep 17 21:01 snmpd
-rwxr-xr-x 1 root wheel 813 Sep 17 21:01 snmptrapd
-rwxr-xr-x 1 root wheel 511 Sep 18 14:45 webmin
More information about the Users-l
mailing list