mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
nixos/services/crowdsec: update systemd service unit config
This commit is contained in:
parent
77dec408cd
commit
b02896bf15
@ -213,11 +213,20 @@ in
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecReload = "kill -HUP $MAINPID";
|
||||
ReadWritePaths =
|
||||
lib.optionals (cfg.settings.common.log_media or "" == "file") [
|
||||
cfg.settings.common.log_folder
|
||||
];
|
||||
|
||||
User = "crowdsec";
|
||||
Group = "crowdsec";
|
||||
|
||||
# TODO: Ideally, this should be set conditionally.
|
||||
# To enable access to systemd journal files.
|
||||
SupplementaryGroups = [ "systemd-journal" ];
|
||||
DynamicUser = true;
|
||||
|
||||
Type = "notify";
|
||||
Restart = "always";
|
||||
RestartSec = "60";
|
||||
@ -237,7 +246,7 @@ in
|
||||
RemoveIPC = true;
|
||||
StandardOutput = "journal";
|
||||
StandardError = "journal";
|
||||
SystemCallFilter = "@system-service";
|
||||
SystemCallFilter = [ "@system-service" ];
|
||||
SystemCallErrorNumber = "EPERM";
|
||||
|
||||
RestrictAddressFamilies = [
|
||||
|
Loading…
Reference in New Issue
Block a user