[rsyslog-notify] Forum Thread: Re: rsyslogd options doesn't apply - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Sat Feb 13 09:16:23 CET 2016
User: nobody
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26341#p26341
Message:
----------
[quote="dlang":3t2x5fit]Ok, that looks like it should be using
RSYSLOGD_OPTIONS
from /etc/default/rsyslog
add a line to do_start that shows all the defined varialbes (a line that
says 'set' for example) and then see what it shows when you try to start
things up. make sure you do this after it reads in the functions and
variables.[/quote:3t2x5fit]
Hi, dlang!
I try to "debug" my init-script with [b:3t2x5fit]echo[/b:3t2x5fit] and
[b:3t2x5fit]log_daemon_msg[/b:3t2x5fit], and how you think i find?
Init-script not used FACEPALM
In this debian used FCKN systemd-scripts at default:
[code:3t2x5fit]root at test:# /etc/init.d/rsyslog start
[ ok ] Starting rsyslog (via systemctl):
rsyslog.service.[/code:3t2x5fit]
So, i looked in [b:3t2x5fit]/etc/systemd/system/[/b:3t2x5fit] and find
there[b:3t2x5fit] syslog.service[/b:3t2x5fit] where i seen it's option
[b:3t2x5fit]"-n"[/b:3t2x5fit]:
[code:3t2x5fit][Unit]
Description=System Logging Service
Requires=syslog.socket
Documentation=man:rsyslogd(8)
Documentation=http://www.rsyslog.com/doc/
[Service]
Type=notify
ExecStart=/usr/sbin/rsyslogd -n
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=syslog.service[/code:3t2x5fit]
then, i write [b:3t2x5fit]ExecStart=/usr/sbin/rsyslogd -xn[/b:3t2x5fit] and
execute [b:3t2x5fit]systemctl daemon-reload[/b:3t2x5fit] and now all works
correctly. Maybe i can somehow disable systemd sctipt and enable
init-script?
More information about the rsyslog-notify
mailing list