Date: Fri, 23 Aug 2013 07:13:51 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: Finding exactly which commands, and in which order, rc is running at startup Message-ID: <5216FD9F.5040506@FreeBSD.org> In-Reply-To: <4896463E-A9E3-4BD5-97AC-628AAFA9D1ED@proper.com> References: <4896463E-A9E3-4BD5-97AC-628AAFA9D1ED@proper.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5216FD9F.5040506>