On Sat Feb 02, 2002 at 02:57:10AM +0000, bascule wrote:

> i have sysklogd-1.4.1-1mdk, i have entered '-r' into the /etc/init.d/syslog 
> file like a good little boy to enable receipt of remote logs, specifically:
> 
> # Source config
> if [ -f /etc/sysconfig/syslog ] ; then
>         . /etc/sysconfig/syslog
> else
>         SYSLOGD_OPTIONS="-r -m 0"
>         KLOGD_OPTIONS="-2"
> fi
> either i've got the syntax wrong or something is odd because if i 'service 
> syslog restart' and then 'netstat -na|grep 514' i get nothing, but if i 
> 'service syslog stop' and then 'syslogd -r -m 0' and then 'netstat -na|grep 
> 514' i get:
> udp        0      0 0.0.0.0:514             0.0.0.0:*
> as i should, is it me?

The problem is the first line there... "# Source config".  Basically,
the initscript will source the file /etc/sysconfig/syslog if it
exists, and if it doesn't will use the SYSLOGD_OPTIONS and
KLOGD_OPTIONS variables.  /etc/sysconfig/syslog contains:

# Options to syslogd
# -m 0 disables 'MARK' messages.
# -r enables logging from remote machines
# -x disables DNS lookups on messages recieved with -r
# See syslogd(8) for more details
SYSLOGD_OPTIONS="-r -m 0"

# Options to klogd
# -2 prints all kernel oops messages twice; once for klogd to decode, and
#    once for processing with 'ksymoops'
# -x disables all klogd processing of oops messages entirely
# See klogd(8) for more details
KLOGD_OPTIONS="-2"

As you can see, this is where you want to through your magic -r.  =)
Output of netstat -lp now shows:

udp        0      0 *:syslog                *:*                                 
3187/syslogd

I suspect that is your problem.

-- 
MandrakeSoft Security, OpenPGP key available on www.keyserver.net
1024D/FE6F2AFD   88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD

Current Linux kernel 2.4.8-34.1mdk uptime: 13 days 4 hours 30 minutes.

Attachment: msg53592/pgp00000.pgp
Description: PGP signature

Reply via email to