Date: Mon, 9 Jul 2007 00:49:38 +0400 From: Yuri Pankov <yuri@darklight.org.ru> To: Jonathan Horne <freebsd@dfwlp.com> Cc: freebsd-questions@freebsd.org Subject: Re: trouble with some startup items Message-ID: <20070708204938.GA98762@darklight.org.ru> In-Reply-To: <200707081537.11124.freebsd@dfwlp.com> References: <200707081537.11124.freebsd@dfwlp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 thi= ngs=20 > that are having trouble starting. apcupsd and samba. i recently noticed= ,=20 > that during start up, they are printed more than once to the console (and= to=20 > my /var/log/console.log. here is the output of my most recent reboot: >=20 > 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 ser= ver=20 > 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=3D60 > 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=20 > 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]: apcup= sd=20 > FATAL ERROR in bsd-usb.c at line 711 Cannot find UPS device -- For a link= to=20 > detailed USB trouble shooting information, please see=20 > <http://www.apcupsd.com/support.html>. > Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: Valid= lock=20 > file for pid=3D685, but not ours pid=3D689 > Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcup= sd=20 > error shutdown completed >=20 > also, here is my /etc/rc.conf file. ive double checked it, and these ite= ms=20 > arent listed twice (not even sure if that would matter if it were). >=20 > # -- 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=3D"athena.dfwlp.com" > ifconfig_bge0=3D"DHCP" > devfs_system_ruleset=3D"localrules" > sshd_enable=3D"YES" > usbd_enable=3D"YES" > ntpdate_enable=3D"YES" > ntpdate_hosts=3D"0.us.pool.ntp.org" > snmpd_enable=3D"YES" > inetd_enable=3D"YES" > inetd_flags=3D"-wW -a 192.168.125.83" > ntpd_enable=3D"YES" > linux_enable=3D"YES" > rpcbind_enable=3D"YES" > nfs_server_enable=3D"YES" > mountd_flags=3D"-r" > nfs_client_enable=3D"YES" > # vsftpd_enable=3D"YES" > cupsd_enable=3D"YES" > samba_enable=3D"YES" > apcupsd_enable=3D"YES" >=20 > can anyone give me any guesses as to where i need to take a look as to wh= at=20 > could be attempting the 2nd starts of these 2 items? also, simply restar= ting=20 > apcupsd will fail, but if i killall apcupsd then start it fresh, it works= for=20 > the duration of my uptime (somehow the pid that stays running gets=20 > disassociated from the pid file). samba is similar behavior. my windows= =20 > computer cannot access the samba, until it is restarted (samba restarts= =20 > normally without any troubles). >=20 > any clues at all, would be appreciated. cheers, > --=20 > 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=3D"/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 --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGkU3ceoAklVFrLdgRAneMAJkBt9Ugxv3hmlIC57fYwdCmSu6TdgCeLaF1 FIh6gr8dlrZKdzABax65JtI= =6dJF -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070708204938.GA98762>