From owner-freebsd-questions@FreeBSD.ORG Sun Jul 8 21:58:11 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63C3716A421 for ; Sun, 8 Jul 2007 21:58:11 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from pollux.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 2303913C43E for ; Sun, 8 Jul 2007 21:58:11 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by pollux.dfwlp.com (8.13.8/8.13.8) with ESMTP id l68Lw8D6016550 for ; Sun, 8 Jul 2007 16:58:08 -0500 (CDT) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Sun, 8 Jul 2007 16:58:07 -0500 User-Agent: KMail/1.9.6 References: <200707081537.11124.freebsd@dfwlp.com> <20070708204938.GA98762@darklight.org.ru> In-Reply-To: <20070708204938.GA98762@darklight.org.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200707081658.08010.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.0 required=3.6 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on pollux.dfwlp.com Subject: Re: trouble with some startup items X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jul 2007 21:58:11 -0000 On Sunday 08 July 2007 15:49:38 Yuri Pankov wrote: > On Sun, Jul 08, 2007 at 03:37:10PM -0500, Jonathan Horne wrote: > > 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 > > . > > 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 > > It happens because you now have /usr/X11R6 symlinked to /usr/local and > local_startup rc variable still points to both. Insert > local_startup="/usr/local/etc/rc.d" to /etc/rc.conf. And, BTW, this is > one of the tasks that /usr/ports/Tools/scripts/mergebase.sh performs > (this is mentioned in /usr/ports/UPDATING). > > > HTH, > Yuri that was it!! thank you so much! interesting thing, is that this system was a complete rebuild from the ground up, after the 7.2 was introduced into the ports. i did still have to set the variable XORG_UPGRADE=yes, but i didnt bother with any other other upgrading hoop-tricks since this system was totally fresh. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org freebsd@dfwlp.com