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

  FORUM HardWare.fr
  Windows & Software

  Démarage automatique d'appli sous Solaris8

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Démarage automatique d'appli sous Solaris8

n°1082326
yanis97
Posté le 05-03-2003 à 12:04:48  profilanswer
 

Bonjour;
 
Je souhaite démarrer automatiquement deux applications :
 
 - un exécutable (.exe)
 - une application web (apache, tomcat, web-apps, ..)
 
Lors du démarrage d'un serveur Sun Solaris 8.
 
Lors d'un crash du serveur Sun et lorsque on redémarre le serveur, les deux applications sont lancées automatiquement sans l'intervention d'un utilisateur.
Pour le moment je lance les scripts d'install à la main et je souhaite que c'est l'OS qui les lancent.
L'OS cible est Sun Solaris 8 qui est un peu différent de Linux.
 
A+;

mood
Publicité
Posté le 05-03-2003 à 12:04:48  profilanswer
 

n°1082382
jaycee
DivX is GooD :)
Posté le 05-03-2003 à 12:39:40  profilanswer
 

c quasiment pareil solaris est un UNIX....
tu mets un script dans etc/rc.d et tu fais un ln-s
 
 
 

Citation :

Adding a Run Control Script
 
If you want to add a run control script to start and stop a service, copy the script into the /etc/init.d directory and create links in the rcn.d directory you want the service to start and stop.
See the README file in each /etc/rcn.d directory for more information on naming run control scripts. The procedure below describes how to add a run control script.
 
 
How to Add a Run Control Script
1. Become superuser.
 
2. Add the script to the /etc/init.d directory.
# cp filename /etc/init.d
# chmod 0744 /etc/init.d/filename
# chown root:sys /etc/init.d/filename
 
3. Create links to the appropriate rcn.d directory.
# cd /etc/init.d
# ln filename /etc/rc2.d/Snnfilename
# ln filename /etc/rcn.d/Knnfilename
 
4. Use the ls command to verify that the script has links in the specified directories.
# ls /etc/init.d/ /etc/rc2.d/ /etc/rcn.d/
 
 
 
Example?Adding a Run Control Script
# cp xyz /etc/init.d
# cd /etc/init.d
# ln xyz /etc/rc2.d/S100xyz
# ln xyz /etc/rc0.d/K100xyz
# ls /etc/init.d /etc/rc2.d /etc/rc0.d


 
Sun Solaris Administration Guide Vol 1 :p


---------------
DivX is GooD :)

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Windows & Software

  Démarage automatique d'appli sous Solaris8

 

Sujets relatifs
Comment désactiver la saisi semin automatique?L'execution automatique ne fonctionnme plus :-(
Notification d'Insertion Automatique CD sous Win 98interdire l'execution d'une appli.
[NT4] Comment virer un reboot automatique d'un serveur ???Capture automatique d'images par webcam
Ou trouve t'on la notification d'insertion automatique sous xpEXecution automatique sous xp PB venez m'aider
Aidez moi sur les execution automatique sous winxp proReboot automatique!!!!
Plus de sujets relatifs à : Démarage automatique d'appli sous Solaris8


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