[syslog-ng] Reloading configuration

Wolfram Schlich lists at wolfram.schlich.org
Fri Nov 24 13:33:14 CET 2006


Anselmo,

*please* fix your MUA, its quote function is broken and it sends HTML mails.

* Anselmo Lacerda S. de Melo <Anselmo.Melo at asga.com.br> [2006-11-24 13:14]:
> * Wolfram Schlich
> > * Anselmo Lacerda Silveira de Melo <anselmo.melo at asga.com.br> [2006-11-24 13:02]:
> > > Just a question: Can syslog-ng reload its configuration file (changed)
> > > without being restarted? I couldn't find anything related in the
> > > documentation.
> >
> > kill -HUP $(< /var/run/syslog-ng.pid)
>
> Hi Wolfram,
> Thank you for answering, but what I asked was about a function (from
> syslog-ng) that does it automaticaly (withou kill, /etc/init.d/syslog
> restart, etc).

Why should it reload it automactially?!

I don't think automatically reloading changed configuration is a smart
idea. You might have broken something when editing syslog-ng.conf.

The standard procedure should be:
1. edit and save syslog-ng.conf
2. check for syntax errors with "syslog-ng -s"
3. reload syslog-ng (kill -HUP) to make it re-initialize its config.

The Gentoo init script for syslog-ng for example does "syslog-ng -s"
automatically before (re)starting syslog-ng. It also supports
a "reload" option that does the "kill -HUP" stuff.

Regards
-- 
Wolfram Schlich


More information about the syslog-ng mailing list