Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tomcat disregards command line (i.e. snap set) port settings #9

Open
atomcult opened this issue Jan 17, 2023 · 1 comment
Open

Tomcat disregards command line (i.e. snap set) port settings #9

atomcult opened this issue Jan 17, 2023 · 1 comment

Comments

@atomcult
Copy link
Contributor

Tomcat is receiving, but ignoring port settings provided on the command line. It seems to only use the $SNAP_COMMON/conf/server.xml file, so this may affect other options as well, but I haven't tested anything but the HTTP port.

# snap get -d opengrok
{
	"opengrok": {
		"http-port": 8040
	},
	"sources": {
		"snapd": {
			"branch": "master",
			"name": "snapd",
			"type": "git",
			"url": "https://github.com/snapcore/snapd.git"
		}
	}
}

$ pgrep -ifa tomcat | grep -o -- '-Dport.http=[0-9]\+'
-Dport.http=8040

# ss -lnp | grep -e 8040 -e 8080
tcp   LISTEN 0      100                                                                          *:8080                   *:*    users:(("java",pid=302358,fd=43)) 
@kubiko
Copy link
Owner

kubiko commented Jan 18, 2023

hmm, this could be a change in the new Tomcat version. This was written originally for tomcat 2 versions back.
If this is the case, configure hook would need to edit xml file :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants