mynodebtc / mynode

The easiest way to run Bitcoin and Lightning!
Other
650 stars 148 forks source link

fail2ban using /var/run instead of /run on Raspi4 with 0.2.25 #472

Open MacDefender opened 3 years ago

MacDefender commented 3 years ago

fail2ban is complaining about incorrect path set for PIDFile: myNode 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.

At least on the Raspi4 version the path should be set to /run/fail2ban/fail2ban.pid per default

Fix: Replace all /var/run/... entries with /run/.. entries in:

Although this is not really a problem as fail2ban autocorrects the path it fills the log with these error messages that may confuses new users into thinking that there is a problem with the node.

tehelsper commented 3 years ago

There are probably several examples like this. That package is actually managed by the raspi repo and it still may not set it up properly. Also, /var/run is symlinked to /run automatically so it really ends up in the right place and both references would work fine.