Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[tomcat5] catalina.sh: Permission denied (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
manu.acl
Guru
Guru


Joined: 29 Jan 2005
Posts: 426
Location: Paris

PostPosted: Thu Apr 20, 2006 8:52 am    Post subject: [tomcat5] catalina.sh: Permission denied (résolu) Reply with quote

J'ai installé www-servers/tomcat-5.0.27-r6. Jusque là tout va bien.

Quand je le lance :
Code:
 # /etc/init.d/tomcat5 start
 * Starting Tomcat ...
start-stop-daemon: Unable to start /opt/tomcat5/bin/catalina.sh: Permission denied                                                               [ ok ]
 #


Et mes droits sur le fichier catalina.sh sont bons... :?
Code:
# ls -l /opt/tomcat5/bin/catalina.sh
-rwxr-xr-x  1 tomcat tomcat 9764 avr 20 10:01 /opt/tomcat5/bin/catalina.sh


Que dois-je faire ? :(


Last edited by manu.acl on Thu Apr 20, 2006 11:43 am; edited 1 time in total
Back to top
View user's profile Send private message
manu.acl
Guru
Guru


Joined: 29 Jan 2005
Posts: 426
Location: Paris

PostPosted: Thu Apr 20, 2006 11:20 am    Post subject: Reply with quote

Petite avancée ; le serveur tomcat démarre parfaitement lorsque j'exécute catalina.sh directement dans une console. Mais le problème persiste avec le script /etc/init.d/tomcat5 :(

Voici un extrait du script de démarrage dans /etc/init.d/ pour les connaisseurs :
Code:
[...]
start() {
        ebegin "Starting Tomcat"
        start-stop-daemon --start --quiet --chuid tomcat:tomcat --exec ${CATALINA_HOME}/bin/catalina.sh -- ${TOMCAT_START}
        sleep 5
        eend $?
}
[...]
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Thu Apr 20, 2006 11:27 am    Post subject: Reply with quote

Bonjour,

Quand tu fais le test de lancer le script à la main, tu le fais bien en étant tomcat (su - tomcat) ?
Back to top
View user's profile Send private message
manu.acl
Guru
Guru


Joined: 29 Jan 2005
Posts: 426
Location: Paris

PostPosted: Thu Apr 20, 2006 11:30 am    Post subject: Reply with quote

Non, je le fais en root :oops:
Je teste avec tomcat de suite

[Edit]
Je vois d'où vient le problème, j'ai en fait déplacé mon dossier /opt sur un disque dur différent et les droits ne sont pas bien définits ^^

J'avais complètement oublié ça :P
[/Edit]
Back to top
View user's profile Send private message
manu.acl
Guru
Guru


Joined: 29 Jan 2005
Posts: 426
Location: Paris

PostPosted: Thu Apr 20, 2006 11:42 am    Post subject: Reply with quote

Et voilà, droits modifiés ^^

Merci de m'avoir mis sur la voie, je pense jamais aux droits :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum