From b1d6e6a38b57f5aba1019f99b5aab178e67c7e26 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Tue, 12 Jan 2016 14:32:22 +0000 Subject: [PATCH] Fix running apache tomcat as a daemon --- nixos/modules/services/web-servers/tomcat.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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