[syslog-ng] stop | restart not working
"4.14.123","hostname":"to","system":"ARMv7 Processor rev 1 (v7l)","model":"Turris Omnia","board_name":"armada-385-turris-omnia","release":{"distribution":"TurrisOS","version":"4.0-beta2","revision":"a6dba1a","target":"mvebu/cortexa9","description":"TurrisOS 4.0-beta2 a6dba1a"}}
/etc/init.d/syslog-ng stop
does not kill the process and instead it remains running. Also its upd
socket remains alive.
Looking at with htop
is seems that one syslog-ng
child instance of its parent supervising syslog-ng
gets terminated whilst a secondary child instance stays alive and the parent also does not terminate.
similar /etc/init.d/syslog-ng restart
, the PID remains the same after the command been executed and it can be tested also by adding another destination in the syslog-ng conf. After the command been executed there is no file at the added destination. However, killing and starting the process manually the new log file is appearing at the added destination.
As a causality train post-installation scripts that restart syslog-ng
do not report a fail of the restart whilst an actual restart did not happen. Same for logrotate with
postrotate
/etc/init.d/syslog-ng restart