Modifications

Sauter à la navigation Sauter à la recherche
502 octets ajoutés ,  2 avril 2017 à 13:04
Ligne 1 : Ligne 1 :  
{{Rasp-Node-Red-NAV}}
 
{{Rasp-Node-Red-NAV}}
   −
== Raspbian Whezzy et Service ==
+
== Raspbian Whezzy et SystemV ==
Node-Red is great out of the box but it can be a bit manual to start, stop and run on boot. The following section will describe a simple init script to do all of the hard work for us.
+
Node-Red est vraiment au top dès son installation mais il nécessite encore un opération manuelle pour le démarrer (''start''), l'arrêter (''stop'') et démarrer au boot.  
   −
Firstly we create a new init.d file, which is essentially a script for starting, stopping and restarting services under Linux.
+
La section suivante décrit comment mettre en oeuvre un "init script" qui effectue le travail pour vous. System V est une collection de script qui supervise le démarrage et l'arrêt des systèmes type Unix. Il était encore utilisé '''jusqu'à Raspbian Whezzy'''. Depuis Raspbian Jessie c'est SystemD qui est utilisé (cfr section suivante).
 +
 
 +
Pour commencer, nous allons créer un nouveau fichier {{fname|init.d}} qui est principalement un script qui démarre, arrête et redémarre les services sous Linux.
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 10 : Ligne 12 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
Then copy and paste the following code in to the file. To do this within nano copy the text below and right click in the nano window you should see the text start to appear.
+
Ensuite, copiez/collez le code suivant dans le fichier. Pour faire cela avec Nano, copiez le texte suivant dans le presse papier puis faites un clique droit dans la fenêtre de Nano... vous verrez le texte apparaître.
   −
The only thing you may need to change before saving is the directory where node-red is installed on your Pi. If you have been following this guide all the way through you do not need to change anything.
+
La seule chose que vous pourriez avoir besoin de changer avant de sauver le fichier c'est le répertoire d'installation Node-Red sur votre ordinateur. Si vous avez attentivement suivit les instructions alors vous ne devriez pas avoir besoin de changer le contenu du fichier.
   −
For those that have installed Node-Red in a different location just change the following line “cd /home/pi/node-red” to reflect the folder location where Node-Red is installed.  
+
Pour ceux qui on installé Node-Red dans un emplacement différent changer simplement la ligne “cd /home/pi/node-red” pour refléter l'installation actuelle de votre Pi.  
    
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
Ligne 62 : Ligne 64 :  
esac
 
esac
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
{{traduction}}
    
Once you have pasted and updated the above script hit CTRL+X and then Y to save changes. Next we will make the file executable so that it can be run.  
 
Once you have pasted and updated the above script hit CTRL+X and then Y to save changes. Next we will make the file executable so that it can be run.  
29 918

modifications

Menu de navigation