Randy Paries wrote:
Thanks
The problem is that they have to both read and write files
The weird thing is if I do a
su - apache -c "$TOMCAT_HOME/bin/startup.sh"
It does not start
But if I do a
su - tomcat -c "$TOMCAT_HOME/bin/startup.sh"
Is does. The one diff is that in the etc/passwd file
apache:x:48:48:Apache:/var/www:/bin/false
tomcat:x:505:48::/home/tomcat:/bin/bash
"su - <user>" will execute login scripts and activate user's shell. As Apache
has "/bin/false" for a shell, it will exit immediately. You should try "su
<user> -c" instead. On our Tru64 UNIX "su" will complain if you try both "-" and
"-c".
So I assume it can not start because of the shell.
So how does apache start.
su apache -c "/usr/local/apache2/bin/apachectl start"
Should I just give apache a shell?
No.
Nix.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>