LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   syslog startup daemon script (https://www.linuxquestions.org/questions/linux-software-2/syslog-startup-daemon-script-48254/)

jpflager 03-04-2003 02:43 PM

syslog startup daemon script
 
I need to configure my syslog daemon to allow for remote hosts to connect. When I do a netstat -an it seems that I'm not listening on 514.

here is a copy of my sylog daemon, any help is appreciated.

# 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="-m 0 -r"
# 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="-x"

Tinkster 03-04-2003 03:35 PM

Right ... did you actually read
Code:

man syslogd
?
In your problem description I can't see anything
about having checked /etc/services...

Or a -h flag ... for that matter:

Quote:

Quoting man syslogd
-h By default syslogd will not forward messages it
receives from remote hosts. Specifying this switch
on the command line will cause the log daemon to
forward any remote messages it receives to forward-
ing hosts which have been defined.
Cheers,
Tink

jpflager 03-04-2003 07:11 PM

I configured the /etc/services to start udp 514, but when I run netstat -an 514 is not in a listening state. I saw your message about -h option, but don't know if applicable here. Your thoughts are appreciated.

Tinkster 03-04-2003 09:20 PM

add -r, too :)

Cheers,
Tink

jpflager 03-04-2003 10:10 PM

I appoligize for my lack of understanding, but I need to put the -r in the /etc/services as well? If so is it supposed to look like this?

biff 512/udp comsat
login 513/tcp
who 513/udp whod
shell 514/tcp cmd # no passwords used
syslog -r 514/udp
printer 515/tcp spooler # line printer spooler
printer 515/udp spooler # line printer spooler

I understand the need to study the literature, but I haven't seen anything that indicates this, only to put it in the syslogd file? So please bear with me. Thanks for your help!!

m0rl0ck 03-05-2003 12:12 AM

Actually the flags look ok. Maybe a stupid question but did you restart syslog after editing the init script?
Also some distros have an /etc/sysconfig/syslog file where option variables are defined for it, did you look at that?

jpflager 03-05-2003 12:59 PM

Yeah I restarted syslog, and I do have that file location changed.


All times are GMT -5. The time now is 07:12 PM.