Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jul 2007 15:37:10 -0500
From:      Jonathan Horne <freebsd@dfwlp.com>
To:        freebsd-questions@freebsd.org
Subject:   trouble with some startup items
Message-ID:  <200707081537.11124.freebsd@dfwlp.com>

Next in thread | Raw E-Mail | Index | Archive | Help
ive been trying to figure out this problem for a while now.  i have 2 things 
that are having trouble starting.  apcupsd and samba.  i recently noticed, 
that during start up, they are printed more than once to the console (and to 
my /var/log/console.log.  here is the output of my most recent reboot:

Jul  8 15:24:05 athena kernel: Starting syslogd.
Jul  8 15:24:05 athena kernel: Initial i386 initialization:
Jul  8 15:24:05 athena kernel: .
Jul  8 15:24:05 athena kernel: Additional ABI support:
Jul  8 15:24:05 athena kernel: linux
Jul  8 15:24:07 athena kernel: .
Jul  8 15:24:07 athena kernel: Setting date via ntp.
Jul  8 15:24:09 athena kernel: 8 Jul 15:24:09 ntpdate[609]: step time server 
24.162.39.167 offset 1.666967 sec
Jul  8 15:24:09 athena kernel: Starting rpcbind.
Jul  8 15:24:09 athena kernel: NFS access cache time=60
Jul  8 15:24:09 athena kernel: Starting mountd.
Jul  8 15:24:09 athena kernel: Starting nfsd.
Jul  8 15:24:09 athena kernel: Starting apcupsd.
Jul  8 15:24:09 athena kernel: Starting apcupsd.
Jul  8 15:24:09 athena kernel: Starting local daemons:
Jul  8 15:24:09 athena kernel: .
Jul  8 15:24:09 athena kernel: Updating motd
Jul  8 15:24:09 athena kernel: .
Jul  8 15:24:09 athena kernel: Mounting late file systems:
Jul  8 15:24:09 athena kernel: .
Jul  8 15:24:09 athena kernel: Starting ntpd.
Jul  8 15:24:09 athena kernel: Starting usbd.
Jul  8 15:24:10 athena kernel: Starting cupsd.
Jul  8 15:24:10 athena kernel: Starting cupsd.
Jul  8 15:24:10 athena kernel: Removing stale Samba tdb files:
Jul  8 15:24:10 athena kernel: .
Jul  8 15:24:10 athena last message repeated 7 times
Jul  8 15:24:10 athena kernel: done
Jul  8 15:24:10 athena kernel: Starting nmbd.
Jul  8 15:24:10 athena kernel: Starting smbd.
Jul  8 15:24:11 athena kernel: Removing stale Samba tdb files:
Jul  8 15:24:11 athena kernel: .
Jul  8 15:24:11 athena last message repeated 5 times
Jul  8 15:24:11 athena kernel: done
Jul  8 15:24:11 athena kernel: Starting nmbd.
Jul  8 15:24:11 athena kernel: Starting smbd.
Jul  8 15:24:11 athena kernel: Starting snmpd.
Jul  8 15:24:11 athena kernel: Starting snmpd.
Jul  8 15:24:11 athena kernel: Configuring syscons:
Jul  8 15:24:11 athena kernel: blanktime
Jul  8 15:24:11 athena kernel: .
Jul  8 15:24:11 athena kernel: Starting sshd.
Jul  8 15:24:12 athena kernel: Starting cron.
Jul  8 15:24:12 athena kernel: Local package initialization:
Jul  8 15:24:12 athena kernel: .
Jul  8 15:24:12 athena kernel: Additional TCP options:
Jul  8 15:24:12 athena kernel: .
Jul  8 15:24:12 athena kernel: Starting inetd.
Jul  8 15:24:12 athena kernel: Starting background file system checks in 60 
seconds.
Jul  8 15:24:12 athena kernel:
Jul  8 15:24:12 athena kernel: Sun Jul  8 15:24:12 CDT 2007
Jul  8 15:24:19 athena kernel: Jul  8 15:24:19 athena apcupsd[689]: apcupsd 
FATAL ERROR in bsd-usb.c at line 711 Cannot find UPS device -- For a link to 
detailed USB trouble shooting information, please see 
<http://www.apcupsd.com/support.html>.
Jul  8 15:24:19 athena kernel: Jul  8 15:24:19 athena apcupsd[689]: Valid lock 
file for pid=685, but not ours pid=689
Jul  8 15:24:19 athena kernel: Jul  8 15:24:19 athena apcupsd[689]: apcupsd 
error shutdown completed

also, here is my /etc/rc.conf file.  ive double checked it, and these items 
arent listed twice (not even sure if that would matter if it were).

# -- sysinstall generated deltas -- # Fri Jun 16 12:58:58 2006
# Created: Fri Jun 16 12:58:58 2006
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="athena.dfwlp.com"
ifconfig_bge0="DHCP"
devfs_system_ruleset="localrules"
sshd_enable="YES"
usbd_enable="YES"
ntpdate_enable="YES"
ntpdate_hosts="0.us.pool.ntp.org"
snmpd_enable="YES"
inetd_enable="YES"
inetd_flags="-wW -a 192.168.125.83"
ntpd_enable="YES"
linux_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
nfs_client_enable="YES"
# vsftpd_enable="YES"
cupsd_enable="YES"
samba_enable="YES"
apcupsd_enable="YES"

can anyone give me any guesses as to where i need to take a look as to what 
could be attempting the 2nd starts of these 2 items?  also, simply restarting 
apcupsd will fail, but if i killall apcupsd then start it fresh, it works for 
the duration of my uptime (somehow the pid that stays running gets 
disassociated from the pid file).  samba is similar behavior.  my windows 
computer cannot access the samba, until it is restarted (samba restarts 
normally without any troubles).

any clues at all, would be appreciated.  cheers,
-- 
Jonathan Horne
http://dfwlpiki.dfwlp.org
freebsd@dfwlp.com



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?200707081537.11124.freebsd>