diff --git a/nixos/modules/services/web-servers/tomcat.nix b/nixos/modules/services/web-servers/tomcat.nix index 9f1be5a82904..6abd6dfb306b 100644 --- a/nixos/modules/services/web-servers/tomcat.nix +++ b/nixos/modules/services/web-servers/tomcat.nix @@ -131,7 +131,8 @@ in description = "Apache Tomcat server"; wantedBy = [ "multi-user.target" ]; after = [ "network-interfaces.target" ]; - serviceConfig.Type = "daemon"; + serviceConfig.Type = "oneshot"; + serviceConfig.RemainAfterExit = true; preStart = '' # Create the base directory