nixos/snapserver: restart systemd service on failure (#356584)

This commit is contained in:
Martin Weinelt
2024-11-19 15:08:13 +01:00
committed by GitHub

View File

@@ -297,6 +297,7 @@ in {
ProtectKernelTunables = true;
ProtectControlGroups = true;
ProtectKernelModules = true;
Restart = "on-failure";
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
RestrictNamespaces = true;
RuntimeDirectory = name;