RE: Issue with sudo + init script

2012-08-06 Thread Shaw, Ray V CTR (US)
> -Original Message- > From: Mark Eggers [mailto:its_toas...@yahoo.com] > $SU - this is the su command to run > If you're running SELinux, you'll need to set this to /sbin/runuser. This was it! SELinux is unfortunately set to "disabled" (as it conflicts with HBSS, which is required), but

RE: Issue with sudo + init script

2012-08-03 Thread Shaw, Ray V CTR (US)
Konstantin Kolinko wrote: > Note that calling startup.sh and shutdown.sh is just a wrapper for > calling catalina.sh with arguments "start" and "stop" respectively. > I'd recommend co call catalina.sh directly instead of those wrapper > scripts. > > Either java fails to start (and catalina.out is

Issue with sudo + init script

2012-08-01 Thread Shaw, Ray V CTR (US)
I'm starting up Tomcat 7.0 on RHEL6 with the following init script: #!/bin/bash # # chkconfig: 235 80 20 # description: Takes care of starting and stopping Tomcat. CATALINA_HOME="/opt/tomcat7" export JAVA_HOME="/usr/java/jdk6-64/" case "$1" in 'start') /bin/su tomcat -c "