FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-01-2010, 12:02 AM
Steffen Maier
 
Default Start rsyslogd also in linuxrc.s390 as in init.c

Some tools such as NetworkManager only send messages to syslog
but not to any terminal. In order to be able to debug issues
with such tools, bring s390 in line with the current init.c which uses
rsyslogd since 0fde437ad02a7cfb170472bad0ddf3b3faf4e7b0.

There have been at least the following bugs asking for the content
of /tmp/syslog on s390: 541873, 578428, 597206, 591533.
---
loader/linuxrc.s390 | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 99e5192..b6b13c3 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -331,6 +331,10 @@ function init_main() {
# make /tmp/ramfs
mount -t ramfs none /tmp

+ # start rsyslogd after mount of /tmp ramfs since it logs to /tmp/syslog
+ echo $"Starting rsyslogd..."
+ rsyslogd -c 4
+
ifconfig lo 127.0.0.1 netmask 255.0.0.0
route add -host 127.0.0.1 dev lo

--
1.7.0.4


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 06-01-2010, 06:33 AM
Ales Kozumplik
 
Default Start rsyslogd also in linuxrc.s390 as in init.c

Hi Steffen,

On 06/01/2010 02:02 AM, Steffen Maier wrote:

+ # start rsyslogd after mount of /tmp ramfs since it logs to /tmp/syslog
+ echo $"Starting rsyslogd..."
+ rsyslogd -c 4
+


This should also look whether there is a "syslog=" command line argument
and write the forwarding directive into /etc/rsyslog.conf so the remote
logging works, much like startSyslog() in init.c does.


Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 06-01-2010, 09:58 AM
Steffen Maier
 
Default Start rsyslogd also in linuxrc.s390 as in init.c

Hi Ales,

On 06/01/2010 08:33 AM, Ales Kozumplik wrote:
> On 06/01/2010 02:02 AM, Steffen Maier wrote:
>> + # start rsyslogd after mount of /tmp ramfs since it logs to
>> /tmp/syslog
>> + echo $"Starting rsyslogd..."
>> + rsyslogd -c 4
>> +
>
> This should also look whether there is a "syslog=" command line argument
> and write the forwarding directive into /etc/rsyslog.conf so the remote
> logging works, much like startSyslog() in init.c does.

Yes, you are right. However, linuxrc.s390 already contains a lot of
duplicated code of init.c (since it is a replacement of the latter on
s390) and we try to keep duplications at a minimum. The long term goal
is to even reduce duplications in linuxrc and move the init specific
parts back to init.c and then call the remaining s390 specific parts of
linuxrc from init.c. Until then, this patch synchronizes master and
rhel6-branch (the other patch bringing in rsyslogd on rhel6 for s390).
Basically s390 will still be behind with regard to syslog= but at least
it will have /tmp/syslog which all other platforms already have for
quite a while now. So it is a step forward, just not the entire way at once.

Steffen

Linux on System z Development

IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:27 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org