[Backport release-24.11] nixos/snapserver: restart systemd service on failure ()

This commit is contained in:
Martin Weinelt 2024-11-19 15:11:44 +01:00 committed by GitHub
commit e3ce039444
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;