[syslog-ng] syslog-ng and systemd

Matthias Runge mrunge at matthias-runge.de
Thu Apr 28 10:41:25 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello users,

Fedora 15 (and later) uses systemd as init-replacement.
Currently, I'm building a fedora package for syslog-ng version 3.2.x.

It is based on a git-snapshot dated April 24th. Is there a way to signal
syslog-ng to reload it's configuration other than HUPing its pid?

The documentation of systemd[1] says:

ExecReload= should be specified for all services supporting reload. It
is highly recommended to add code here that synchronously reloads the
configuration file here (i.e. /bin/kill -HUP $MAINPID is usually a poor
choice, due to its asynchronous nature). Omit this option if your
service does not support reloading.

I would highly appreciate not to maintain a pidfile. Newer linux kernels
support so called cgroups. Those can be used to group processes. Systemd
creates a cgroup for each service and starts in our case syslog-ng in
this cgroup. When no process runs in syslog-ng cgroup, the process
exited and must be restarted. systemd takes care of this.

Again, is there any other way to signal syslog-ng to reload its config?

Thanks,

Matthias


[1]
https://fedoraproject.org/wiki/Systemd_Packaging_Draft#Writing_unit_files
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNuSg1AAoJEOnz8qQwcaIWb6oIAKMjeWwi5C/qZFeWgSL0/X5Y
lsMjjWQ/YvhdgjHxNLEHFpTsJT6nrFo1akLN9nL4I8j23vekEgtDrWKAeOk/A+S9
LVUmgcGYnXJC3Oshu2Xg8MLcBQIIrXVrboTeG5GHGBG3gWmRuzL0yH9PjSKbNcd0
PtHSxqEBwhHN9vOc59a5UvclElGgmSzqmYdS5Qm84fStii+j7GNwkqRQvoEGrPlw
RrOSFsIPGStXnxk+SzRn8JCKrk7ueZM7l8QoJPIfghdumFqyjPhZRd2BQUlorr6z
J3u3GEpXaIOyj+qyix+KTTofjiJh/TC4/SVnqmNTQgsqKLNy1hDCWHXz2X1v7TY=
=M50d
-----END PGP SIGNATURE-----


More information about the syslog-ng mailing list