FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-02-2009, 10:41 AM
Stephan Schöffel
 
Default Tomcat start script / Can't find CATALINA_BASE

Hi,

I have a problem here with running tomcat from the start script in
/etc/init.d. The root-account somehow does not know the CATALINA_BASE
variable i exported in /etc/profile like this:


CATALINA_BASE="/var/apache-tomcat-5.5.27/conf"
export CATALINA_BASE


The normal user knows the path, though:

webuntisuser@webuntis:~$ echo $CATALINA_BASE
/var/apache-tomcat-5.5.27/conf
webuntisuser@webuntis:~$

webuntisuser@webuntis:~$ sudo echo $CATALINA_BASE
/var/apache-tomcat-5.5.27/conf

webuntisuser@webuntis:~$ sudo bash
root@webuntis:~# echo $CATALINA_BASE

root@webuntis:~#


Any idea, what to do?


--Stephan


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-02-2009, 10:46 AM
Stephan Schöffel
 
Default Tomcat start script / Can't find CATALINA_BASE

Stephan Schöffel schrieb:
> Hi,
>
> I have a problem here with running tomcat from the start script in
> /etc/init.d. The root-account somehow does not know the CATALINA_BASE
> variable i exported in /etc/profile like this:
>
>
> CATALINA_BASE="/var/apache-tomcat-5.5.27/conf"
> export CATALINA_BASE
>
>
> The normal user knows the path, though:
>
> webuntisuser@webuntis:~$ echo $CATALINA_BASE
> /var/apache-tomcat-5.5.27/conf
> webuntisuser@webuntis:~$
>
> webuntisuser@webuntis:~$ sudo echo $CATALINA_BASE
> /var/apache-tomcat-5.5.27/conf
>
> webuntisuser@webuntis:~$ sudo bash
> root@webuntis:~# echo $CATALINA_BASE
>
> root@webuntis:~#
>
>
> Any idea, what to do?
>
>
> --Stephan
>
>
>
The ../conf version of the path was only a try, but it wont wokr the
other way (ie the path without /conf) either.


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 03-02-2009, 11:36 AM
Matthew Flaschen
 
Default Tomcat start script / Can't find CATALINA_BASE

Stephan Schöffel wrote:
> Hi,
>
> I have a problem here with running tomcat from the start script in
> /etc/init.d. The root-account somehow does not know the CATALINA_BASE
> variable i exported in /etc/profile like this:
>
>
> CATALINA_BASE="/var/apache-tomcat-5.5.27/conf"
> export CATALINA_BASE

/etc/profile is only read by login shells. Put it in /etc/bash.bashrc
(since you're using bash). Also you can do it in one line:

export CATALINA_BASE="/var/apache-tomcat-5.5.27/conf"

Matt Flaschen

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 03:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org