[systemd-devel] Antw: [EXT] Re: 'PIDFile=' warning and override.conf
Ulrich Windl
Ulrich.Windl at rz.uni-regensburg.de
Wed Aug 26 05:56:32 UTC 2020
>>> Richard Hector <richard at walnut.gen.nz> schrieb am 26.08.2020 um 02:19 in
Nachricht <6fb63a3a-0127-a8fe-d980-c10df1964edb at walnut.gen.nz>:
> On 26/08/20 12:10 pm, Chuck Wolber wrote:
>> You did not post your override.conf file for inspection, so it is hard
>> to tell.
>
> True, here it is (/etc/systemd/system/fail2ban.service.d/override.conf)
>
> [Service]
> ExecStartPre=
> ExecStartPre=/bin/mkdir -p /run/fail2ban
> PIDFile=
> PIDFile=/run/fail2ban/fail2ban.pid
As there can be only one pid file (I suppose), this seems like a bug to me. If
a variable can be listed multiple times, it's an interesting question how to
"reset" previous assignments, however.
>
> I didn't have the empty 'PIDFile=' line at first, and added it later.
> The 'ExecStartPre=' line I did have from the beginning. I wasn't sure if
> it was necessary, but from my understanding it wouldn't hurt.
>
> Those were the only two lines that mentioned /var/run/fail2ban; I
> figured I should update them in sync.
>
>> Did you remember to do a systemctl daemon-reload after you added your
>> override.conf?
>
> I did - that's what triggers the warning in /var/log/syslog (and
> presumably the journal, but syslog is what I'm more familiar with).
>
> Cheers,
> Richard
>
>> On Tue, Aug 25, 2020 at 4:27 PM Richard Hector <richard at walnut.gen.nz
>> <mailto:richard at walnut.gen.nz>> wrote:
>>
>> Hi all,
>>
>> I've got the common warning:
>>
>> /lib/systemd/system/fail2ban.service:12: PIDFile= references path
below
>> legacy directory /var/run/, updating /var/run/fail2ban/fail2ban.pid →
>> /run/fail2ban/fail2ban.pid; please update the unit file accordingly.
>>
>> I made the change in the relevant override.conf file, but that doesn't
>> seem to work. Changing the 'real' one in /lib/systemd/system works.
>>
>> Is that how it's supposed to be?
>>
>> I'm using debian buster, with systemd package version 241-7~deb10u4
>>
>> Cheers,
>> Richard
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> <mailto:systemd-devel at lists.freedesktop.org>
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
>>
>>
>> --
>> *"Perfection must be reached by degrees; she requires the slow hand of
>> time." - Voltaire*
>>
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>>
>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
More information about the systemd-devel
mailing list