From 05b2d7fdec454736f95fb0edd7096de1dbdda9ec Mon Sep 17 00:00:00 2001
From: Nikolaus Krismer <nikolaus.krismer@uibk.ac.at>
Date: Wed, 27 May 2015 22:21:15 +0200
Subject: [PATCH] source profile in init script so it works without problems in
 centos 6 with the service command

---
 conf/tomcat_startscript.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/conf/tomcat_startscript.sh b/conf/tomcat_startscript.sh
index ea2f0d7..94ba7bb 100644
--- a/conf/tomcat_startscript.sh
+++ b/conf/tomcat_startscript.sh
@@ -9,6 +9,8 @@
 . /etc/init.d/functions
 #. /etc/sysconfig/network
 
+source /etc/profile
+
 CATALINA_HOME=/opt/tomcat
 CATALINA_BASE=/opt/tomcat
 TOMCAT_USER=tomcat
-- 
GitLab