update
This commit is contained in:
parent
67d8de2f5c
commit
bc739f0880
1 changed files with 8 additions and 2 deletions
10
flake.nix
10
flake.nix
|
@ -341,13 +341,19 @@
|
||||||
enable = cfg.enable;
|
enable = cfg.enable;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "anycast-healthchecker";
|
|
||||||
Group = "bird2";
|
Group = "bird2";
|
||||||
DynamicUser = true;
|
User = "bird2";
|
||||||
RuntimeDirectory = "anycast-healthchecker";
|
RuntimeDirectory = "anycast-healthchecker";
|
||||||
StateDirectory = "anycast-healthchecker";
|
StateDirectory = "anycast-healthchecker";
|
||||||
ExecStart = "${package}/bin/anycast-healthchecker --file ${conf} --dir ${conf_d}";
|
ExecStart = "${package}/bin/anycast-healthchecker --file ${conf} --dir ${conf_d}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
MemoryDenyWriteExecute = true;
|
||||||
|
PrivateDevices = true;
|
||||||
|
PrivateTmp = true;
|
||||||
|
ProtectControlGroups = true;
|
||||||
|
ProtectHome = true;
|
||||||
|
ProtectKernelTunables = true;
|
||||||
|
ProtectSystem = "full";
|
||||||
};
|
};
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue