mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixos/snapserver: restart the systemd service on failure
This commit is contained in:
parent
f38cc637fd
commit
7031d0fdd0
@ -297,6 +297,7 @@ in {
|
|||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
|
Restart = "on-failure";
|
||||||
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
|
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
RuntimeDirectory = name;
|
RuntimeDirectory = name;
|
||||||
|
Loading…
Reference in New Issue
Block a user