Arch Linux

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!
Tasklist

FS#36417 - [tomcat7] only first parameter from CATALINA_OPTS is used

Attached to Project: Arch Linux
Opened by Martin Minka (k2s) - Sunday, 04 August 2013, 19:14 GMT
Last edited by Dave Reisner (falconindy) - Monday, 05 August 2013, 13:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Changing Environment=CATALINA_OPTS= in tomcat7.service seams to apply only first parameter to tomcat server. I tried without quotes and also with single/double quotes.

Additional info:
* tomcat7: 7.0.42-1

Steps to reproduce:
1. I copied provided tomcat7.service file to /etc/systemd/system
2. then changed line: Environment=CATALINA_OPTS=-Xms1024m -Xmx2048m
3. start tomcat
4. ps ax | grep Xmx2048m
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 05 August 2013, 13:19 GMT
Reason for closing:  Works for me
Comment by Martin Minka (k2s) - Sunday, 04 August 2013, 19:17 GMT
This is also needed:
2b systemctl --system daemon-reload
Comment by Jan de Groot (JGC) - Monday, 05 August 2013, 08:35 GMT
I think you should consider adding some quotes:
Environment=CATALINA_OPTS="-Xms1024m -Xmx2048m"
Comment by Martin Minka (k2s) - Monday, 05 August 2013, 09:17 GMT
Thank you for reply Jan.

As I mentioned in my ticket: I tried without quotes and also with single/double quotes.

No one of them works, only first parameter is added.

It works if I add this parameters after $CATALINA_OPTS in ExecStart, but $CATALINA_OPTS is not substituted correctly by systemd.
Comment by Dave Reisner (falconindy) - Monday, 05 August 2013, 13:19 GMT
The doc states that you must quote the whole "key=value pair" in order for it to be effective.

Loading...