# Installer le wrapper

Disponible dans...

* Cloud API Services Platform
* Cloud Data Fabric

Installez le wrapper Apache Karaf Service pour générer les fichiers de services de Talend Runtime.

## Procédure

1. Parcourez votre système jusqu'au dossier container\bin du répertoire d'installation de Talend Runtime, puis exécutez le fichier trun.bat en mode Administrateur.
2. Pour installer la fonctionnalité de wrapper, exécutez la commande suivante :

   karaf@trun&gt; feature:install wrapper

   Une fois installée, cette fonctionnalité vous fournit la nouvelle commande wrapper:install dans le fichier trun, qui vous permet d'installer Talend Runtime en tant que service.
3. Pour installer le service, exécutez la commande suivante :

   karaf@trun&gt; wrapper:install

   Il est également possible d'installer le conteneur en tant que service en mode démarrage automatique, en exécutant la commande suivante :

   karaf@trun&gt; wrapper:install -s AUTO\_START -n TALEND-CONTAINER -d Talend-Container -D "Talend Container Service"

   où TALEND-CONTAINER désigne le nom du service, Talend-Container le nom d'affichage personnalisé et "Talend Container Service" la description de ce service.

   Voici un exemple de commande wrapper:install exécutée sous Windows :
   ```
   karaf@trun> wrapper:install -s AUTO_START -n TALEND-CONTAINER -d Talend-ContainerT -n 
   TALEND-CONTAINER -d Talend-Container -D "Talend Container Service"
   Creating file: C:\Builds\Talend-Runtime\bin\TALEND-CONTAINER-wrapper.exe
   Creating file: C:\Builds\Talend-Runtime\etc\TALEND-CONTAINER-wrapper.conf
   Creating file: C:\Builds\Talend-Runtime\bin\TALEND-CONTAINER-wrapper.bat
   Creating file: C:\Builds\Talend-Runtime\lib\wrapper.dll
   Creating file: C:\Builds\Talend-Runtime\lib\karaf-wrapper.jar
   Creating file: C:\Builds\Talend-Runtime\lib\karaf-wrapper-main.jar

   Setup complete. You may wish to tweak the JVM properties in the wrapper configuration file: 
   C:\Builds\Talend-Runtime\etc\TALEND-CONTAINER-wrapper.conf
   before installing and starting the service.

   To install the service, run:
   C:> C:\Builds\Talend-Runtime\bin\TALEND-CONTAINER-service.bat install

   Once installed, to start the service run:
   C:> net start "TALEND-CONTAINER"

   Once running, to stop the service run:
   C:> net stop "TALEND-CONTAINER"

   Once stopped, to remove the installed service run:
   C:> C:\Builds\Talend-Runtime\bin\TALEND-CONTAINER-service.bat remove
   ```

## Résultats

Les fichiers de service de Talend Runtime sont générés. Vous pouvez installer le service Talend Runtime.