Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#32947 - [tomcat7] Systemd service script imposing java-7-openjdk
Attached to Project:
Arch Linux
Opened by Romain Bisse (RomainBisse) - Monday, 03 December 2012, 10:08 GMT
Last edited by Guillaume ALAUX (galaux) - Thursday, 28 March 2013, 12:43 GMT
Opened by Romain Bisse (RomainBisse) - Monday, 03 December 2012, 10:08 GMT
Last edited by Guillaume ALAUX (galaux) - Thursday, 28 March 2013, 12:43 GMT
|
DetailsDescription:
The Java home seems to be "hard coded" in the systemd service script for Tomcat 7 : Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk Thus, the jsvc command fails with any other jdk. Additional info: * package version(s) : 7.0.33-1 |
This task depends upon
Closed by Guillaume ALAUX (galaux)
Thursday, 28 March 2013, 12:43 GMT
Reason for closing: Won't implement
Thursday, 28 March 2013, 12:43 GMT
Reason for closing: Won't implement
The TOMCAT_JAVA_HOME set in this service file uses Arch Linux's default JAVA_HOME which is OpenJDK's. If you would like to use it with another path, just copy the service file to /etc/systemd/system/ and apply your config there as stated in the wiki [1].
[0] http://0pointer.de/public/systemd-man/systemd.service.html
[1] https://wiki.archlinux.org/index.php/Systemd#Replacing_provided_unit_files
However, can we find any dynamic way of starting the service, using $JAVA_HOME for example ?
If not, the wiki[0] should mention the need of a specific configuration file for OpenJDK 6.
[0] https://wiki.archlinux.org/index.php/Tomcat#Systemd
I will close this bug report once this is implemented.
systemd service files do not inherit environment variable such as JAVA_HOME. This is a normal behavior.
As Arch currently provides only one JDK in its official repositories there *currently* is no need for official multi-JDK support. Still I already have a pretty good idea about how to do it (see [0]). This should come up when OpenJDK8 is out. So I'm postponing this and will bring it back with OpenJDK8 integration.
To answer your question: systemd in its last version provides configuration files à la .d/*.conf (see Tom's email [1]). This could answer your need in the meantime.
[0] https://mailman.archlinux.org/pipermail/arch-dev-public/2013-February/024412.html
[1] https://mailman.archlinux.org/pipermail/arch-dev-public/2013-March/024582.html