Created attachment 166442 [details] SVN diff file Hi, The patch changes only start/stop script. Now script tomcat6 uses jps to check if process is running or not. But jps makes a lot of actions with running java machines (at least perf attaching) and sometimes can fail if remote process is busy. So it's better to use procstat because it doesn't touch running processes. It works for me. Patch is very-very simple, so there is no impact on build processes, that's why I'm not attaching testport & portlint outputs. Please let me know it they are required. Please review it! Thanks
Comment on attachment 166442 [details] SVN diff file Maintainer timeout (1 month), implicit approval Open to take
This patch fixes specific cases: 1) If "tomcat60_user" is specified in rc.conf and different from root, service stop/start doesn't work. 2) If tomcat is hang (for instance, infinite fullgc), jps can't lookup PID of tomcat, so service stop doesn't work. Thanks!
A commit references this bug: Author: feld Date: Mon Mar 14 15:31:56 UTC 2016 New revision: 411095 URL: https://svnweb.freebsd.org/changeset/ports/411095 Log: www/tomcat6: Make rc script more reliable By using procstat instead of jps to check if the daemon is running we avoid deadlocks if the java process is hung. PR: 206853 Changes: head/www/tomcat6/Makefile head/www/tomcat6/files/tomcat6.in