Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System Logger Help
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Bangz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 148
Location: Brisbane/Austrralia

PostPosted: Mon Feb 10, 2003 2:56 pm    Post subject: System Logger Help Reply with quote

Hi,

I was doing some stuff before, and tail -f /var/log/messages returned nothing (file didnt exist).

So asking in #gentoo, I was told to run a cmd which returned 'Not Installed' for all the syslogers, so the guy in the room told me to emerge sysklogd.

Anyways, I did that, and when i rc-update add sysklogd default, it gave a warning saying you shouldnt be running the same type of service twice for the same thing (logging).

So this is where Im at now.

I only want one (fairly simply) system logger, although sysklogd seems good looking thru the config file where it will post the messaging into certain files depending on where they are coming from.

So what do I do ? How do I see which loggers I have installed?

Im in the process of installing BIND, so I need to see the messaging it returns.
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Mon Feb 10, 2003 3:26 pm    Post subject: Reply with quote

Try this:

Code:
qpkg -I -nc app-admin


If you don't have qpkg installed, emerge gentoolkit.

However, changes are you installed metalog since that's what the install docs
say to do, in which case it was writing to /var/log/everything/everything.
You can unmerge one of your sysloggers and just use the other, but you'll
have to manually remove the rc files and config files from /etc in order to
make your system not complain about two loggers.

--rtn
Back to top
View user's profile Send private message
Bangz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 148
Location: Brisbane/Austrralia

PostPosted: Sat Feb 15, 2003 2:01 pm    Post subject: Reply with quote

Thanks.

Yes that command returned I had both metalog and sysklogd Installed.

Ive just emerge unmerge sysklogd.

What do I have to do to remove all the rc files etc. I'm not familiar with doing that (never done it).
Back to top
View user's profile Send private message
leemc
n00b
n00b


Joined: 17 Feb 2003
Posts: 42
Location: Austria

PostPosted: Mon Feb 17, 2003 11:59 pm    Post subject: Reply with quote

Hi Bangz!

Bangz wrote:

What do I have to do to remove all the rc files etc. I'm not familiar with doing that (never done it).


Go to /mnt/.init.d and remove all syslog-ng files and syslog-ng directories. This should stop the rc-update warnings.

Regards,

leemc
Back to top
View user's profile Send private message
Bangz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 148
Location: Brisbane/Austrralia

PostPosted: Tue Feb 18, 2003 4:08 am    Post subject: Reply with quote

Mariah .init.d # find . -name sysklogd
./after/sysklogd
./after/checkroot/sysklogd
./before/sysklogd
./before/local/sysklogd
./use/sysklogd
./need/hostname/sysklogd
./need/clock/sysklogd
./need/sysklogd
./provide/logger/sysklogd
./started/sysklogd
./snapshot/sysklogd



Do I delete all them?
Back to top
View user's profile Send private message
leemc
n00b
n00b


Joined: 17 Feb 2003
Posts: 42
Location: Austria

PostPosted: Tue Feb 18, 2003 1:17 pm    Post subject: Reply with quote

Hi!

Bangz wrote:
Mariah .init.d # find . -name sysklogd
./after/sysklogd
./after/checkroot/sysklogd
./before/sysklogd
./before/local/sysklogd
./use/sysklogd
./need/hostname/sysklogd
./need/clock/sysklogd
./need/sysklogd
./provide/logger/sysklogd
./started/sysklogd
./snapshot/sysklogd

Do I delete all them?


Yes. But to be on the safe side make a backup of .init.d first and then delete the sysklogd files.

Regards,

leemc
Back to top
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Tue Feb 18, 2003 1:57 pm    Post subject: Reply with quote

Will not "rc-update del sysklogd" fix this problem?
Back to top
View user's profile Send private message
leemc
n00b
n00b


Joined: 17 Feb 2003
Posts: 42
Location: Austria

PostPosted: Tue Feb 18, 2003 2:29 pm    Post subject: Reply with quote

Hi!
magisk wrote:
Will not "rc-update del sysklogd" fix this problem?


It should but did not - at least for me! I use metalog as my system logger but I wanted to try out syslog-ng. So I emerged syslog-ng and did a "rc-update add syslog-ng default". rc-update warned me not to install two loggers and so I used "rc-update del metalog" to delete metalog. Somehow it didn't work out and I had two loggers installed. I couldn't delete either metalog nor syslog-ng with rc-update. I solved the problem by deleting all syslog-ng files and directories in .init.d.

Regards,

leemc
Back to top
View user's profile Send private message
Bangz
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2003
Posts: 148
Location: Brisbane/Austrralia

PostPosted: Tue Feb 18, 2003 2:38 pm    Post subject: Reply with quote

Thanks! I used

"rc-update del sysklogd"

I didnt feel to comfortable deleting the files individually.

How do I see now if the system only sees metalog as the ONLY system logger?
Back to top
View user's profile Send private message
magisk
n00b
n00b


Joined: 10 Feb 2003
Posts: 44
Location: Haugesund, Norway

PostPosted: Tue Feb 18, 2003 4:29 pm    Post subject: Reply with quote

Quote:
How do I see now if the system only sees metalog as the ONLY system logger?


I'm not sure. But if you have unmerged syslog-ng and done "rc-update del syslogd" it should not be there anymore. At least that's the way i should be.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
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