Fail2ban & dovecot error messages in syslog?

I’m seeing these errors frequently in the system log. Both of these services are disabled in VirtualMin. Is there a way through VM to sort this out?

Jan 25 21:44:04 ip-0-0-0-0 systemd[1]: /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.
Jan 25 21:44:04 ip-0-0-0-0 systemd[1]: /lib/systemd/system/dovecot.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/dovecot/master.pid → /run/dovecot/master.pid; please update the unit file accordingly.
SYSTEM INFORMATION
OS type and version Debian 10
Virtualmin version 2.011

This is a systemd issue, check out the configuration files in /lib/systemd/system and look at the [service] section. You’ll find a line PIDFile= simply remove the /var from the front of the path since /run is now mounted as tmpfs on modern linux. Legacy linux used /var/run and maybe some obscure flavours. If you get stuck check out the documentation on SystemD services configuration for some background.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.