syslog-ng: improve init and fix service stop 9211/head
authorKarel Kočí <karel.koci@nic.cz>
Mon, 10 Jun 2019 07:40:44 +0000 (09:40 +0200)
committerKarel Kočí <karel.koci@nic.cz>
Mon, 10 Jun 2019 07:53:18 +0000 (09:53 +0200)
commit44a16ca3253c1395671905a83d60fa8e604a273a
tree83a81b7eb88dd83419369e2061635bdc2f8f24c8
parent96df1c380f94128b00b17de169f41aebdb61b099
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>
admin/syslog-ng/Makefile
admin/syslog-ng/files/syslog-ng.init