Re: Finding exactly which commands, and in which order, rc is running at startup

2013-08-24 Thread Paul Hoffman
Thanks for all the suggestions. Of them, this was the one that helped me with 
my issue:

On Aug 23, 2013, at 1:41 AM, Doug Hardie bc...@lafn.org wrote:

 You can add:
 
 rc_debug=YES
 
 to /etc/rc.conf and that might give you what you need.  According to the man 
 page it will produces copious output to the terminal and syslog(3)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding exactly which commands, and in which order, rc is running at startup

2013-08-23 Thread Matthew Seaman
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.
 
 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.log
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

-- 
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey




signature.asc
Description: OpenPGP digital signature


Re: Finding exactly which commands, and in which order, rc is running at startup

2013-08-23 Thread Doug Hardie

On 22 August 2013, at 13:07, Paul Hoffman phoff...@proper.com 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.
 
 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.

You can add:

rc_debug=YES

to /etc/rc.conf and that might give you what you need.  According to the man 
page it will produces copious output to the terminal and syslog(3)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Finding exactly which commands, and in which order, rc is running at startup

2013-08-23 Thread Ulrik Søgaard
On 23 August 2013 10:41, Doug Hardie bc...@lafn.org wrote:


 On 22 August 2013, at 13:07, Paul Hoffman phoff...@proper.com 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.
 
  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.

 You can add:

 rc_debug=YES

 to /etc/rc.conf and that might give you what you need.  According to the
 man page it will produces copious output to the terminal and syslog(3)
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


You can use rcorder /etc/rc.d/* /usr/local/etc/rc.d/* to show the order
of which the startup scripts is run.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org