Commit graph

10 commits

Author SHA1 Message Date
Philip Prindeville
c27f4ca53b syslog-ng: restore service "reload" to actually working
Commit 44a16ca broke syslog-ng such that it no longer works with
logrotate, for example.  Yes, you can manually stop and start the
service, but (1) you shouldn't have to and (2) it creates a window
where you potentially lose messages if the syslog UDP socket
overruns.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2020-05-06 10:38:43 -06:00
Karel Kočí
44a16ca325
syslog-ng: improve init and fix service stop
This fixes service stop. Problem was that in default syslog-ng forks to
background which causes procd to loose track of it. It no longer has in
such case PID of syslog-ng process and is unable to stop it. This means
that instance for such process hangs in procd and also it is not
possible to stop it as daemon. Fix is simple. syslog-ng is now
instructed to run in foreground.

This commit also drops unnecessary reload section. In default reload
calls restart and restart in default is implemented as calling stop and
start. This means that effectively it is implemented same as in case of
this init reload service implementation.

Signed-off-by: Karel Kočí <karel.koci@nic.cz>
2019-06-10 09:53:18 +02:00
Michal Hrusecky
41f3511093
syslog-ng: Use procd style init
Signed-off-by: Michal Hrusecky <michal.hrusecky@nic.cz>
2019-01-18 00:18:21 +01:00
Philip Prindeville
3b4df04332 syslog-ng: fix typo in .pid file path
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-27 21:04:19 -06:00
Philip Prindeville
83bd830407 syslog-ng: use syslog-ng-ctl for proper reloads
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-26 11:54:06 -06:00
Philip Prindeville
08a13fb27a syslog-ng: add syntax check to startup script
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-26 11:54:06 -06:00
Philip Prindeville
2898e7cc47 syslog-ng: get rid of guardian process
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-26 11:54:06 -06:00
Philip Prindeville
1923459f4e syslog-ng: replace hardcoded paths with variables
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-07-26 11:54:06 -06:00
Philip Prindeville
84b136cdb4 syslog-ng: fix various install problems such as missing plugins, etc
Install the plugins as various functionality is no longer in the
utility itself but is packaged as a .so plugin instead. Disable
plugins with too many dependencies (or too exotic).

Bump the version number on the config file to agree with the package's
version number.

Clean up any .la files from libtool.

Start much earlier so that logging doesn't miss startup messages from
other services.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-01-09 02:05:20 -07:00
W. Michael Petullo
ef0fef50fb syslog-ng: import from oldpackages
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2017-01-06 07:51:50 -05:00