Resolves: rhbz#1341850 tomcat-jsvc.service has TOMCAT_USER value hard-coded
This commit is contained in:
parent
b6ffa60f91
commit
ea624b1371
@ -14,6 +14,7 @@ After=syslog.target network.target
|
|||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/etc/tomcat/tomcat.conf
|
EnvironmentFile=/etc/tomcat/tomcat.conf
|
||||||
Environment="NAME=" "USE_JSVC=true"
|
Environment="NAME=" "USE_JSVC=true"
|
||||||
|
EnvironmentFile=-/etc/sysconfig/tomcat
|
||||||
ExecStart=/usr/libexec/tomcat/server start
|
ExecStart=/usr/libexec/tomcat/server start
|
||||||
ExecStop=/usr/libexec/tomcat/server stop
|
ExecStop=/usr/libexec/tomcat/server stop
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ _save_function() {
|
|||||||
|
|
||||||
run_jsvc(){
|
run_jsvc(){
|
||||||
if [ -x /usr/bin/jsvc ]; then
|
if [ -x /usr/bin/jsvc ]; then
|
||||||
TOMCAT_USER="tomcat"
|
TOMCAT_USER="${TOMCAT_USER:-tomcat}"
|
||||||
JSVC="/usr/bin/jsvc"
|
JSVC="/usr/bin/jsvc"
|
||||||
|
|
||||||
JSVC_OPTS="-nodetach -pidfile /var/run/jsvc-tomcat${NAME}.pid -user ${TOMCAT_USER} -outfile ${CATALINA_BASE}/logs/catalina.out -errfile ${CATALINA_BASE}/logs/catalina.out"
|
JSVC_OPTS="-nodetach -pidfile /var/run/jsvc-tomcat${NAME}.pid -user ${TOMCAT_USER} -outfile ${CATALINA_BASE}/logs/catalina.out -errfile ${CATALINA_BASE}/logs/catalina.out"
|
||||||
|
@ -689,6 +689,7 @@ fi
|
|||||||
- Resolves: rhbz#1347864 The systemd service unit does not allow tomcat to shut down gracefully
|
- Resolves: rhbz#1347864 The systemd service unit does not allow tomcat to shut down gracefully
|
||||||
- Resolves: rhbz#1347835 The security manager doesn't work correctly (JSPs cannot be compiled)
|
- Resolves: rhbz#1347835 The security manager doesn't work correctly (JSPs cannot be compiled)
|
||||||
- Resolves: rhbz#1341853 rpm -V tomcat fails on /var/log/tomcat/catalina.out
|
- Resolves: rhbz#1341853 rpm -V tomcat fails on /var/log/tomcat/catalina.out
|
||||||
|
- Resolves: rhbz#1341850 tomcat-jsvc.service has TOMCAT_USER value hard-coded
|
||||||
|
|
||||||
* Wed Mar 2 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-4
|
* Wed Mar 2 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-4
|
||||||
- Revert sysconfig migration changes, resolves: rhbz#1311771, rhbz#1311905
|
- Revert sysconfig migration changes, resolves: rhbz#1311771, rhbz#1311905
|
||||||
|
Loading…
Reference in New Issue
Block a user