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

 


Dernière réponse
Sujet : Démarage automatique d'appli sous Solaris8
jaycee 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


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
jaycee 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

yanis97 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+;

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)