Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] Logging of /etc/init.d/* scripts
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 405
Location: Lisboa - Portugal

PostPosted: Thu Dec 15, 2005 7:10 am    Post subject: [solved] Logging of /etc/init.d/* scripts Reply with quote

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 10:10 am; edited 1 time in total
Back to top
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Thu Dec 15, 2005 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15665
Location: Colorado

PostPosted: Thu Dec 15, 2005 12:46 pm    Post subject: Reply with quote

DT&T Guidelines for Tips & Tricks (READ BEFORE POSTING) wrote:
This is *not* a support forum. Do not ask questions here.


Moved from Documentation, Tips & Tricks
_________________
Knock knock. Who's there? Xorg now supports* HAL to automatically hot-plug input devices.

*Disclaimer: support != automatically makes it work.
Back to top
View user's profile Send private message
PaulBredbury
Veteran
Veteran


Joined: 14 Jul 2005
Posts: 5931

PostPosted: Thu Dec 15, 2005 2:10 pm    Post subject: Re: Logging of /etc/init.d/* scripts Reply with quote

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
_________________
Common links
Back to top
View user's profile Send private message
Sodki
Guru
Guru


Joined: 11 Aug 2003
Posts: 405
Location: Lisboa - Portugal

PostPosted: Fri Dec 16, 2005 10:10 am    Post subject: Reply with quote

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:
DT&T Guidelines for Tips & Tricks (READ BEFORE POSTING) wrote:
This is *not* a support forum. Do not ask questions here.


Moved from Documentation, Tips & Tricks

Oops! Sorry, I didn't realize my mistake. :oops:


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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 15665
Location: Colorado

PostPosted: Fri Dec 16, 2005 10:15 am    Post subject: Reply with quote

Couldn't recall RC_BOOTLOG...

forums.gentoo.org/viewtopic-t-376209-highlight-rcbootlog.html
_________________
Knock knock. Who's there? Xorg now supports* HAL to automatically hot-plug input devices.

*Disclaimer: support != automatically makes it work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum