Hi Tom,
On Fri, Apr 10, 2026 at 02:28:46AM +1000, Tom wrote:
> Checking the diff between /etc/init.d/syslog-ng and other initscripts showed
> that there is an extra `#` at the end of the last LSB header line.
>
> https://sources.debian.org/src/syslog-ng/4.8.1-7/debian/syslog-ng-core.syslog-ng.init#L11
>
> If I remove that trailing `#` then I can see syslog-ng in the output of
> `rc-status`. Also after a reboot I can see syslog-ng starts up succesfully.
>
> I am unable to determine whether this is either a bug in the syslog-ng-core
> initscript for having invalid LSB header syntax, or if the initscript is
> valid and openrc is failing to parse a valid LSB header. Hopefully you can
> shed some light on that.
This is
https://bugs.debian.org/1111518. I raised a pull request to fix
it:
https://github.com/gcsideal/syslog-ng-debian/pull/14.
In my case I found it testing the Freia version of sysv-rc-conf so I am
interested that this actually affected someone in a different context.
Perhaps a second use case will persuade the maintainers it is worth
fixing:
$ sysv-rc-conf
LSB header parsing error: Not in a terminal state (2) at EOF in /etc/init.d/syslog-ng
Andrew