View previous topic :: View next topic |
Author |
Message |
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Mon Feb 10, 2003 2:56 pm Post subject: System Logger Help |
|
|
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 |
|
|
rtn Guru
Joined: 15 Nov 2002 Posts: 427
|
Posted: Mon Feb 10, 2003 3:26 pm Post subject: |
|
|
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 |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Sat Feb 15, 2003 2:01 pm Post subject: |
|
|
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 |
|
|
leemc n00b
Joined: 17 Feb 2003 Posts: 42 Location: Austria
|
Posted: Mon Feb 17, 2003 11:59 pm Post subject: |
|
|
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 |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Tue Feb 18, 2003 4:08 am Post subject: |
|
|
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 |
|
|
leemc n00b
Joined: 17 Feb 2003 Posts: 42 Location: Austria
|
Posted: Tue Feb 18, 2003 1:17 pm Post subject: |
|
|
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 |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Tue Feb 18, 2003 1:57 pm Post subject: |
|
|
Will not "rc-update del sysklogd" fix this problem? |
|
Back to top |
|
|
leemc n00b
Joined: 17 Feb 2003 Posts: 42 Location: Austria
|
Posted: Tue Feb 18, 2003 2:29 pm Post subject: |
|
|
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 |
|
|
Bangz Tux's lil' helper
Joined: 23 Jan 2003 Posts: 148 Location: Brisbane/Austrralia
|
Posted: Tue Feb 18, 2003 2:38 pm Post subject: |
|
|
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 |
|
|
magisk n00b
Joined: 10 Feb 2003 Posts: 44 Location: Haugesund, Norway
|
Posted: Tue Feb 18, 2003 4:29 pm Post subject: |
|
|
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 |
|
|
|