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-05 Thread Adam Breaux
I'd recommend removing the export JAVA_HOME line. Doing that in an init script does not work. Put it in a file in /etc/profile.d/java.sh instead. Comment out the line in the init script and try it again. You're running into an odd environment setting condition. On Fri, Aug 3, 2012 at 5:16 PM,

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 opened

Re: Issue with sudo + init script

2012-08-03 Thread Mark Eggers
On 8/3/2012 12:38 PM, Shaw, Ray V CTR (US) wrote: 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

Re: Issue with sudo + init script

2012-08-02 Thread André Warnier
Stefan Mayr wrote: Am 01.08.2012 19:10, schrieb 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

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

Re: Issue with sudo + init script

2012-08-01 Thread Konstantin Kolinko
2012/8/1 Shaw, Ray V CTR (US) ray.v.shaw@mail.mil: 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

Re: Issue with sudo + init script

2012-08-01 Thread Stefan Mayr
Am 01.08.2012 19:10, schrieb 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