mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 05:37:34 +03:00
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:
parent
179e1ea76a
commit
dbfdfd0728
2 changed files with 2 additions and 0 deletions
1
dist/maddy.service
vendored
1
dist/maddy.service
vendored
|
@ -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
1
dist/maddy@.service
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue