On 17.03.2018 19:16, Loai Abdallatif wrote:
actually all of them has X permissions

-rwxr--r-- 1 root   root      70 Mar 17 11:59 shutdown-instance0.sh
-rwxr--r-- 1 root   root      70 Mar 17 11:48 shutdown-instance1.sh
-rwxr--r-- 1 root   root      70 Mar 17 11:59 shutdown-instance2.sh
-rwxr--r-- 1 root   root      69 Mar 17 11:58 startup-instance0.sh
-rwxr--r-- 1 tomcat root      69 Mar 17 11:46 startup-instance1.sh
-rwxr--r-- 1 tomcat root      69 Mar 17 11:59 startup-instance2.sh

well, there's one problem: The first 4 files have x permission for root, but not for the unprivileged user "tomcat" - and I hope that you're not starting tomcat as root. You'd look for rwxr-xr-x permission on those files.

Following up on my other answer, to have both in one:

root@appserver01:/opt/tomcat0# cat startup-instance0.sh
export CATALINA_BASE=/opt/tomcat0
cd $CATALINA_HOME/bin
./startup.sh

Note that you set BASE but cd to HOME - try to see what happens by changing the file to

   echo "running as user: "
   whoami
   export CATALINA_BASE=/opt/tomcat0
   echo "cd-ing to " $CATALINA_HOME/bin
   cd $CATALINA_HOME/bin
   echo "current working directory after cd"
   pwd
   ./startup.sh

Note: I've copied from your file and just added some lines.

report that output.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to