dist: Add LogsDirectory to systemd unit

See https://github.com/foxcpp/maddy/wiki/fail2ban-configuration

Without that it will be impossible for maddy to write to /var/log/maddy
due to sandboxing (ProtectSystem=strict).
This commit is contained in:
fox.cpp 2019-09-19 01:59:50 +03:00
parent 179e1ea76a
commit dbfdfd0728
No known key found for this signature in database
GPG key ID: E76D97CCEDE90B6C
2 changed files with 2 additions and 0 deletions

1
dist/maddy.service vendored
View file

@ -20,6 +20,7 @@ DynamicUser=true
ConfigurationDirectory=maddy
RuntimeDirectory=maddy
StateDirectory=maddy
LogsDirectory=maddy
ReadOnlyPaths=/usr/lib/maddy
# Strict sandboxing. You have no reason to trust code written by strangers from GitHub.

1
dist/maddy@.service vendored
View file

@ -13,6 +13,7 @@ DynamicUser=true
ConfigurationDirectory=maddy
StateDirectory=maddy
ReadOnlyPaths=/usr/lib/maddy
LogsDirectory=maddy
# Strict sandboxing. You have no reason to trust code written by strangers from GitHub.
PrivateTmp=true