Re: Bug#921351: [pkg-go] Bug#921351: prometheus-postfix-exporter: Init script missing
On 11/02/2019 11:32, Daniel Swarbrick wrote:
> Hi Martin,
> On 11.02.19 12:21, Martín Ferrari wrote:
>> Yes, I realised that when I was working on the package. But this does
>> not solve the issue about supporting sysv, so I added a rsyslog snippet
>> to create the separate logfile, and removed the systemd.enable flag from
>> the default so both versions use that logfile.
> Is there any way the exporter could use the systemd journal when in a
> system environment, and only fall back to using the extra log file when
> running under sysv?
It could by just passing the option in the service file, but I did not
find a way to enable the separate log file only when under sysv, so it
would end up accumulating used disk space if using systemd and thought
that would be worse.
Martín Ferrari (Tincho)