summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien ROZO2009-07-21 12:45:36 +0200
committerJulien ROZO2009-07-21 12:45:36 +0200
commit363075e5314dde1fabdff3e38ce685853925f64b (patch)
treec231f5edb2b120b64b3333d0132c92387e2de258
parent26162b2c5ea6025212450bbda691d4be55ebe0da (diff)
tomcat-6-bin: in init.d/tomcat6, replaced a plain call to tomcat6 user by ${TOMCAT_USER}
-rw-r--r--bin-http/tomcat-6-bin/HISTORY3
-rwxr-xr-xbin-http/tomcat-6-bin/init.d/tomcat62
2 files changed, 4 insertions, 1 deletions
diff --git a/bin-http/tomcat-6-bin/HISTORY b/bin-http/tomcat-6-bin/HISTORY
index 6f18d7d..06dc3ab 100644
--- a/bin-http/tomcat-6-bin/HISTORY
+++ b/bin-http/tomcat-6-bin/HISTORY
@@ -1,3 +1,6 @@
+2009-07-21 Julien "_kaze_" ROZO <julien@rozo.org>
+ * init.d/tomcat6: replaced a plain call to tomcat6 user by ${TOMCAT_USER}
+
2009-06-11 Julien "_kaze_" ROZO <julien@rozo.org>
* BUILD, DEPENDS, DETAILS, HISTORY, INSTALL, PRE_BUILD, init.d/tomcat6,
init.d/tomcat6.conf: created this spell
diff --git a/bin-http/tomcat-6-bin/init.d/tomcat6 b/bin-http/tomcat-6-bin/init.d/tomcat6
index 9e63927..a6bd111 100755
--- a/bin-http/tomcat-6-bin/init.d/tomcat6
+++ b/bin-http/tomcat-6-bin/init.d/tomcat6
@@ -19,7 +19,7 @@ start()
echo "$NAME already running";
else
/bin/su -s /bin/sh $TOMCAT_USER -c $TOMCAT_HOME/bin/startup.sh
- echo `ps -U tomcat6 -o pid=` > $PIDFILE
+ echo `ps -U ${TOMCAT_USER} -o pid=` > $PIDFILE
fi
evaluate_retval
}