From owner-freebsd-questions@FreeBSD.ORG Fri Aug 23 06:14:02 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1C6C4E7E for ; Fri, 23 Aug 2013 06:14:02 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4D512F31 for ; Fri, 23 Aug 2013 06:14:01 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r7N6DpDp003839 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 23 Aug 2013 07:13:52 +0100 (BST) (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r7N6DpDp003839 Authentication-Results: smtp.infracaninophile.co.uk/r7N6DpDp003839; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy) Message-ID: <5216FD9F.5040506@FreeBSD.org> Date: Fri, 23 Aug 2013 07:13:51 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Finding exactly which commands, and in which order, rc is running at startup References: <4896463E-A9E3-4BD5-97AC-628AAFA9D1ED@proper.com> In-Reply-To: <4896463E-A9E3-4BD5-97AC-628AAFA9D1ED@proper.com> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hkdSUSJch3rWm8Jak7SCEsQbfkXj1RLx1" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Aug 2013 06:14:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hkdSUSJch3rWm8Jak7SCEsQbfkXj1RLx1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 22/08/2013 21:07, Paul Hoffman wrote: > Greetings again. After doing a freebsd-update, my system is starting > up differently than it was before. I want to figure out why before I > come here and say "it's broken". >=20 > Is there a way to say "show me all of the commands you are running > during startup"? It would be grand if I could say "tell me what you > would do next time (dry run)", but "what did you do last time" is OK > too. How much detail do you want? You probably can't get a report on every single process run during the boot process at all easily. However, you can see the console output from the boot process. To see what the kernel emits on boot-up, look at /var/run/dmesg.boot -- if you've got an old copy of dmesg.boot around somewhere, comparing the two should show you any changes in the devices the kernel discovers when it probes your system. To see the output from the rc system, the best thing is to enable the console log. Edit /etc/syslog.conf and uncomment the indicated line, as = so: # uncomment this to log all writes to /dev/console to /var/log/console.lo= g console.info /var/log/console.log Then do: touch /var/log/console.log chmod 600 /var/log/console.log /etc/rc.d/syslogd restart Obviously, that won't help you see what happened on the previous reboot, but on the next reboot you should see a transcript of the console output.= Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --hkdSUSJch3rWm8Jak7SCEsQbfkXj1RLx1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlIW/Z8ACgkQ8Mjk52CukIzyggCdHgxIhSPZad7Vxra6CRtepJMF SxUAn3/TquVMlOpXqIMamobq950NPh4S =JXC5 -----END PGP SIGNATURE----- --hkdSUSJch3rWm8Jak7SCEsQbfkXj1RLx1--