Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1141 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  service à installer

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

service à installer

n°857738
thierryR
J'aime les bretzels
Posté le 30-10-2006 à 21:23:42  profilanswer
 

J'ai installé un script tomcat dans rc.d/init.d
puis ai mis des liens dans rc.5
 

S87tomcat

juste après apache

S85apache1


 
Je suppose que S87tomcat envoie un "tomcat start" à tomcat mais ce dernier ne démarre pas.
A la main il n'y a pas de probleme

# service tomcat start
Starting tomcat: Using CATALINA_BASE:   /var/lib/tomcat
Using CATALINA_HOME:   /var/lib/tomcat
Using CATALINA_TMPDIR: /var/lib/tomcat/temp
Using JRE_HOME:       /usr/java/jre1.5.0_06
tomcat.


 
J'aurais oublié quelque chose ?


Message édité par thierryR le 31-10-2006 à 08:47:36

---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/
mood
Publicité
Posté le 30-10-2006 à 21:23:42  profilanswer
 

n°858134
thierryR
J'aime les bretzels
Posté le 01-11-2006 à 00:13:42  profilanswer
 

serais je trop imprecis ?


---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/
n°858136
black_lord
Modérateur
Truth speaks from peacefulness
Posté le 01-11-2006 à 00:16:07  profilanswer
 

regarde dans tes logs...


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
n°858213
thierryR
J'aime les bretzels
Posté le 01-11-2006 à 13:11:03  profilanswer
 

Il n'y a rien....


---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/
n°858220
black_lord
Modérateur
Truth speaks from peacefulness
Posté le 01-11-2006 à 14:22:25  profilanswer
 

je pense que tu regardes pas au bon endroit


---------------
uptime is for lousy system administrators what Viagra is for impotent people - mes unixeries - github me
n°858226
thierryR
J'aime les bretzels
Posté le 01-11-2006 à 14:59:44  profilanswer
 

Oh.... [:azitwaz] pourtant je ne fume pas.... :D  
 
Méthode utilisée
 
drakconf/system/logs
contenant : tomcat
filtre: ce jour
journaux: syslog + messages
 
== rien


---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/
n°858290
Dark_Schne​ider
Close the World, Open the Net
Posté le 01-11-2006 à 18:04:40  profilanswer
 

http://www.linux-wizard.net/howto. [...] y=services


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°858312
thierryR
J'aime les bretzels
Posté le 01-11-2006 à 20:00:16  profilanswer
 

Salut Dark
Je me pose une question basic.
Est ce que le dossier profile.d est lu avant l'installation des services ?
Dans le script j'utilise des constantes qui doivent être définie au préalable d'ou l'utilite de lire profile.d avant..
 

#! /bin/sh
#
# tomcat Start up tomcat
#
# chkconfig: 35 87 13  
#export JAVA_HOME=/usr/java/java
# export CATALINA_OPTS=-Xmx512m # alloue 512M de RAM à Java
export LANG=fr_FR
     
DAEMON_START=$CATALINA_HOME/bin/startup.sh
DAEMON_STOP=$CATALINA_HOME/bin/shutdown.sh
DAEMON_VERSION=$CATALINA_HOME/bin/version.sh
 
NAME=tomcat
DESC="tomcat"
     
set -e
     
case "$1" in
start)


 
sinon il est mis comme tous les autres scripts en chmod 744 et en schown root:root
 
J'ai modifié mon script pour l'adapter à chkconfig
 

# chkconfig --add tomcat
le service tomcat ne prend pas en charge chkconfig


 
Comment ça peut s'expliquer ?  :pt1cable:  


Message édité par thierryR le 01-11-2006 à 22:45:46

---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/
n°858591
Dark_Schne​ider
Close the World, Open the Net
Posté le 02-11-2006 à 18:34:48  profilanswer
 

ajoute une ligne vide après la ligne du chkconfig.
 
sinon, pkoi tu n'installes pas le package tomcat de mandriva ? ou tu peux t'inspirer du script de démarrage du package.
 

Citation :


[admin@info1 soirée du 27-10-2006]$ urpmq -i tomcat5
Name        : tomcat5
Version     : 5.5.17
Release     : 3.1.2mdv2007.0
Group       : Development/Java
Size        : 741044                       Architecture: i586
Source RPM  : tomcat5-5.5.17-3.1.2mdv2007.0.src.rpm   Build Host: n5.mandriva.com
Packager    : David Walluck <walluck@mandriva.org>
URL         : http://tomcat.apache.org/
Summary     : Apache Servlet/JSP Engine, RI for Servlet 2.4/JSP 2.0 API
Description :
Tomcat is the servlet container that is used in the official Reference
Implementation for the Java Servlet and JavaServer Pages technologies.
The Java Servlet and JavaServer Pages specifications are developed by
Sun under the Java Community Process.
 
Tomcat is developed in an open and participatory environment and
released under the Apache Software License. Tomcat is intended to be
a collaboration of the best-of-breed developers from around the world.
We invite you to participate in this open development project. To
learn more about getting involved, click here.


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°858728
thierryR
J'aime les bretzels
Posté le 03-11-2006 à 09:18:58  profilanswer
 

Je sais qu'il est pratique mais je ne m'y retrouve pas. après l'install de tomcat je dois y mettre opensi dans webapps. Je ne l'ai jamais trouvé. Alors que là, j'ai tout sous la main. Les logs, webbapp .....En plus il me faut le java de sun, hors ce package ne l'utilise pas. Il veut m'en mettre un autre.
 

# urpmi tomcat5-webapps
Un des paquetages suivants est nécessaire :
 1- ldapjdk-4.17-1.3mdv2007.0.i586 : The Mozilla LDAP Java SDK (to install)
 2- jamvm-1.4.3-3mdv2007.0.i586 : Java Virtual Machine which conforms to the JVM specification version 2 (to install)
 3- kaffe-1.1.8-0.20060723.1mdv2007.0.i586 : A free virtual machine for running Java(TM) code (to install)
 4- cacao-0.96-2mdv2007.0.i586 : JIT compiler for Java (to install)
Que choisissez-vous ? (1-4)


 
Je choisirais bien 0 pour n'y mettre aucun dépendance ....
 

# rpm -qa | grep -i jre
jre-1.5.0_06-fcs


 
C'est drôle quand, je vien encore de réétudier ta page et ne vois rien... Un saut de ligne n'y change rien. Je te le mets en entier. Si tu vois une anomalie .....
 
# cat /etc/init.d/tomcat

#! /bin/sh
#
# tomcat Start up tomcat
#
# chkconfig: 35 87 13
 
#export JAVA_HOME=/usr/java/java
# export CATALINA_OPTS=-Xmx512m # alloue 512M de RAM à Java
export LANG=fr_FR
 
DAEMON_START=$CATALINA_HOME/bin/startup.sh
DAEMON_STOP=$CATALINA_HOME/bin/shutdown.sh
DAEMON_VERSION=$CATALINA_HOME/bin/version.sh
 
NAME=tomcat
DESC="tomcat"
 
set -e
 
case "$1" in
start)
echo -n "Starting $DESC: "
$DAEMON_START
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
$DAEMON_STOP
echo "$NAME."
;;
restart|force-reload)
echo -n "Restarting $DESC: "
$DAEMON_STOP
sleep 1
$DAEMON_START
echo "$NAME."
;;
status|version)
echo -n "Version $DESC: "
$DAEMON_VERSION
echo "$NAME."
;;
*)
N=/etc/init.d/$NAME
echo "Usage: $N {start|stop|restart|force-reload|status|version }" >&2
exit 1
;;
esac
 
exit 0


Message édité par thierryR le 03-11-2006 à 09:58:03

---------------
Penguin online qui ne fait que des conneries, et qui aime ça. Membre du http://www.fonacon.net/

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Installation

  service à installer

 

Sujets relatifs
[ amsn ][ smileys ] Faire/installer un pack? pack hfrInstaller linux tout en gardant Windows.
difficultés pour installer linux sur un portable ATIInstaller GRUB avec Debian Etch
[NOOB] Installer le nouvel xfree86 sur une mandrake 6.0[Mandriiva 2007] Installer KDE 4
[Résolu] Installer linux depuis une disquette de démarrage win95besoin de xinetd pour installer tftpf-hpa??
[debian] installer php5-mysqli : probleme de dependenceinstaller checkgmail suse 10.1
Plus de sujets relatifs à : service à installer


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR