mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
Added tomcat service to NixOS
svn path=/nixos/trunk/; revision=10402
This commit is contained in:
parent
b8cc335fbb
commit
b3ff0f8a59
@ -1035,6 +1035,23 @@
|
||||
};
|
||||
};
|
||||
|
||||
tomcat = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable Apache Tomcat";
|
||||
};
|
||||
|
||||
baseDir = mkOption {
|
||||
default = "/var/tomcat";
|
||||
description = "Location where Tomcat stores configuration files, webapplications and logfiles";
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
default = "nobody";
|
||||
description = "User account under which Apache Tomcat runs.";
|
||||
};
|
||||
};
|
||||
|
||||
httpd = {
|
||||
|
||||
enable = mkOption {
|
||||
|
@ -188,6 +188,12 @@ let
|
||||
inherit config pkgs;
|
||||
})
|
||||
|
||||
# Apache Tomcat service
|
||||
++ optional config.services.tomcat.enable
|
||||
(import ../upstart-jobs/tomcat.nix {
|
||||
inherit config pkgs;
|
||||
})
|
||||
|
||||
# Samba service.
|
||||
++ optional config.services.samba.enable
|
||||
(import ../upstart-jobs/samba.nix {
|
||||
|
Loading…
Reference in New Issue
Block a user