View previous topic :: View next topic |
Author |
Message |
Sodki Guru
Joined: 11 Aug 2003 Posts: 419 Location: London, U.K. & Lisbon, Portugal
|
Posted: Thu Dec 15, 2005 12:10 pm Post subject: [solved] Logging of /etc/init.d/* scripts |
|
|
Hello,
Today I stumbled upon this:
Code: | bianca ~ # /etc/init.d/vixie-cron restart
* Starting vixie-cron ... [ !! ] |
So, vixie-cron failed to start (no problem on this machine). But why does it fail? I went to check the logs, but there isn't anything related to that event on /var/log/everything/current.
What is the correct way to check the error output of the /etc/init.d/* scripts?
Last edited by Sodki on Fri Dec 16, 2005 3:10 pm; edited 1 time in total |
|
Back to top |
|
|
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Thu Dec 15, 2005 1:21 pm Post subject: |
|
|
Check /etc/conf.d/rc and you'll find this:
Code: |
# RC_BOOTLOG will generate a log of the boot messages shown on the console.
# Useful for headless machines or debugging. You need to emerge the
# app-admin/showconsole package for this to work. Note that this probably
# won't work correctly with boot splash.
RC_BOOTLOG="no"
|
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Thu Dec 15, 2005 5:46 pm Post subject: |
|
|
Moved from Documentation, Tips & Tricks _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Thu Dec 15, 2005 7:10 pm Post subject: Re: Logging of /etc/init.d/* scripts |
|
|
Sodki wrote: | What is the correct way to check the error output of the /etc/init.d/* scripts? |
Look at the script itself:
Code: | start-stop-daemon --start --quiet --exec /usr/sbin/cron |
That --quiet is hiding the info messages. So, as root, check with ps ax that cron is not already running, then run /usr/sbin/cron and see if any interesting messages appear, then run ps ax again to check whether cron is still running or has spontaneously combusted. Then, tail /var/log/messages _________________ Improve your font rendering and ALSA sound |
|
Back to top |
|
|
Sodki Guru
Joined: 11 Aug 2003 Posts: 419 Location: London, U.K. & Lisbon, Portugal
|
Posted: Fri Dec 16, 2005 3:10 pm Post subject: |
|
|
fvant wrote: | Check /etc/conf.d/rc and you'll find this:
Code: |
# RC_BOOTLOG will generate a log of the boot messages shown on the console.
# Useful for headless machines or debugging. You need to emerge the
# app-admin/showconsole package for this to work. Note that this probably
# won't work correctly with boot splash.
RC_BOOTLOG="no"
|
|
Unfortunately I'm still using an old version of baselayout which doesn't support this. But it is a nice method for newer installs, thanks.
pjp wrote: |
Moved from Documentation, Tips & Tricks |
Oops! Sorry, I didn't realize my mistake.
PaulBredbury wrote: | Look at the script itself:
Code: | start-stop-daemon --start --quiet --exec /usr/sbin/cron |
That --quiet is hiding the info messages. |
Thank you for pointing that out to me. Now I know what to do. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
|