# Installing and uninstalling Remote Engine service (System V)

Available in...

* Cloud API Services Platform
* Cloud Big Data
* Cloud Big Data Platform
* Cloud Data Fabric
* Cloud Data Integration
* Cloud Data Management Platform

Talend Remote Engine is based on Apache Karaf. Karaf Service Wrapper makes it possible to install the Remote Engine as a Linux service.

## Procedure

1. Stop the engine if it is running.

   If your engine is running tasks, you can follow [this procedure](https://help.qlik.com/talend/en-US/remote-engine-user-guide-linux/Cloud/gracefull-remote-engine-shutdown) to gracefully shut down Talend Remote Engine.
2. Open a terminal instance.
3. Browse to the bin folder of the Talend Remote Engine installation directory and run the following command to create OS service wrapper files for the talend-remote-engine service.
   ```
   ./shell wrapper:install -n talend-remote-engine
   ```

   The following files are created in the &lt;RemoteEngineInstallationDirectory&gt;/bin folder:
   * talend-remote-engine-wrapper
   * talend-remote-engine-service
   * talend-remote-engine.service

   The talend-remote-engine-wrapper.conf file is created in the &lt;RemoteEngineInstallationDirectory&gt;/etc folder. In this wrapper configuration file, you can customize the JVM properties for the engine service.
4. Browse to the bin folder of the Remote Engine installation directory, then run the following commands to install the talend-remote-engine service:
   * For Ubuntu/Debian:
     ```
     ln -s <RemoteEngineInstallationDirectory>/bin/talend-remote-engine-service /etc/init.d/
     update-rc.d talend-remote-engine-service defaults
     ```
   * For CentOS/Red Hat/Fedora:
     ```
     ln -s  <RemoteEngineInstallationDirectory>/bin/talend-remote-engine-service /etc/init.d/
     chkconfig talend-remote-engine-service --add
     ```
5. When you need to uninstall the service, do the following:
   1. Stop the engine if it is running.
   2. Run the following command to uninstall the talend-remote-engine service:
      1. * For Ubuntu/Debian:
           ```
           rm /etc/init.d/talend-remote-engine-service
           ```
         * For CentOS/Red Hat/Fedora:
           ```
           chkconfig talend-remote-engine-service --del
           rm /etc/init.d/talend-remote-engine-service 
           ```