Bug 147648 - syslog should stop later
Summary: syslog should stop later
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 3
Hardware: Other Other
: P5 - None : Minor (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 15:01 UTC by Christoph Thiel
Modified: 2006-02-09 10:09 UTC (History)
3 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Thiel 2006-02-02 15:01:40 UTC
On shutdown rcnetwork displays some debug info output from NetworkManager. This shouldn't happen.
Comment 1 Christian Zoz 2006-02-02 15:31:05 UTC
This is not a problem of rcnetwork. Before network is stopped we stop syslog. Then the debig messages go to console.

cthiel: maybe we should stop syslog later?
Comment 2 Christoph Thiel 2006-02-02 18:00:17 UTC
I guess we will need to split this bugs into two parts, because

 a) we need to discuss what kind of debug output NM schould produce (by default)

and 

 b) we should try to find a solution for syslog.

Let me add some words on syslog first: On boot we have a syslog_early and syslog (which get's started after rcnetwork). I understand that syslog needs to get stoped before we shut down the network, but IMO we could try introduce a syslog_late (or something like that) that does exactly the oposite of the things we do on boot. Does this sound good to you, Werner? Marius?

On the logging part, let's create another bug and continue the discussion there.
Comment 3 Christian Zoz 2006-02-03 08:56:21 UTC
'earlysyslog start' starts local logging
'syslog start' switches to remote logging if configured
'syslog stop' should switch back to local logging (if called at runlevel change)
'earlyslog stop' should stop logging completely

Marius, can we do that with syslog-ng?

BTW: Why don't we start earlysyslog much earlier, e.g. after boot.localfs
Comment 4 Dr. Werner Fink 2006-02-06 11:59:12 UTC
Please no daemons within boot.d/ because this level is only
used at cold boot for the system check.

Beside this, logging over network requires an active network.
Therefore NM/rcnetwork should not depend on syslog.  This was
the reason for the split of syslog into earlysyslog and syslog.
Without using network for logging the first script should
start the syslog(-ng) and with forwarding the logs over network
the later script should be used.
Comment 5 Christian Zoz 2006-02-08 21:19:03 UTC
NM/rcnetwork does not depend on syslog, so there is no bug on my side currently. NM will probably reduce verbosity anyway.

My qustions were:
1) Can we proceed using syslog locally after network stop like we do before starting network? Can we gat this somehow?

2) Very early syslog:
OK, i see can understand that you don't want to start deamons in boot.d. But since  we do a lot of asynchronous stuff via udev in boot.d it would be nice if we could log all actions to make debugging earlier.

So if you see a chance to get one of these features realized then i will happily file a feature request. Just tell me.
Otherwise, close this bug, if you say there is no chance.
Comment 6 Dr. Werner Fink 2006-02-09 10:09:03 UTC
Both 1) and 2) would require a caching daemon/service storing the
syslog messages locally as long as the disk is writable and if
the real syslog daemon is started forwarding all messages to
the new process owing /dev/log.  Don't know if this is possible
with a socket.

Please open a feature request but be aware that for 1) you may
not find an appropiate solution.  And for 2) we've to solve the
problem of having only one local socket and two daemons.