Added CATALINA_OPTS parameter
svn path=/nixos/trunk/; revision=12588
This commit is contained in:
parent
5dc694d39a
commit
4c3627f16e
2 changed files with 6 additions and 1 deletions
|
@ -1508,6 +1508,11 @@ in
|
|||
description = "Parameters to pass to the Java Virtual Machine which spawns Apache Tomcat";
|
||||
};
|
||||
|
||||
catalinaOpts = mkOption {
|
||||
default = "";
|
||||
description = "Parameters to pass to the Java Virtual Machine which spawns the Catalina servlet container";
|
||||
};
|
||||
|
||||
sharedLibFrom = mkOption {
|
||||
default = "";
|
||||
description = "Location where shared libraries are stored. Leave empty to use the baseDir.";
|
||||
|
|
|
@ -99,7 +99,7 @@ in
|
|||
|
||||
end script
|
||||
|
||||
respawn ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c 'CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${pkgs.jdk} JAVA_OPTS="${cfg.javaOpts}" ${pkgs.tomcat6}/bin/startup.sh; sleep 1d'
|
||||
respawn ${pkgs.su}/bin/su -s ${pkgs.bash}/bin/sh ${cfg.user} -c 'CATALINA_BASE=${cfg.baseDir} JAVA_HOME=${pkgs.jdk} JAVA_OPTS="${cfg.javaOpts}" CATALINA_OPTS="${cfg.catalinaOpts}" ${pkgs.tomcat6}/bin/startup.sh; sleep 1d'
|
||||
|
||||
stop script
|
||||
echo "Stopping tomcat..."
|
||||
|
|
Loading…
Reference in a new issue