# Remote Engineサービスをインストールおよびアンインストール(System V)

利用対象...

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

Talend Remote EngineはApache Karafをベースとしています。Karaf Service Wrapperを使えば、Remote EngineをLinuxサービスとしてインストールできます。

## 手順

1. エンジンが実行中の場合は、停止します。

   エンジンが実行中の場合は、[この手順](https://help.qlik.com/talend/ja-JP/remote-engine-user-guide-linux/Cloud/gracefull-remote-engine-shutdown)に従ってTalend Remote Engineを安全にシャットダウンしてください。
2. ターミナルインスタンスを開きます。
3. Talend Remote Engineインストールディレクトリーのbinフォルダーを参照し、次のコマンドを実行して、talend-remote-engineサービスのOSサービスラッパーファイルを作成します。
   ```
   ./shell wrapper:install -n talend-remote-engine
   ```

   &lt;RemoteEngineInstallationDirectory&gt;/binフォルダーに次のファイルが作成されます。
   * talend-remote-engine-wrapper
   * talend-remote-engine-service
   * talend-remote-engine.service

   &lt;RemoteEngineInstallationDirectory&gt;/etcフォルダーにtalend-remote-engine-wrapper.confファイルが作成されます。このラッパー設定ファイルでは、エンジンサービスのJVMプロパティをカスタマイズできます。
4. Remote Engineインストールディレクトリーのbinフォルダーを参照し、次のコマンドを実行してtalend-remote-engineサービスをインストールします:
   * Ubuntu/Debianの場合:
     ```
     ln -s <RemoteEngineInstallationDirectory>/bin/talend-remote-engine-service /etc/init.d/
     update-rc.d talend-remote-engine-service defaults
     ```
   * CentOS/Red Hat/Fedoraの場合:
     ```
     ln -s  <RemoteEngineInstallationDirectory>/bin/talend-remote-engine-service /etc/init.d/
     chkconfig talend-remote-engine-service --add
     ```
5. サービスをアンインストールしたい時は、次の操作を行います:
   1. エンジンが実行中の場合は、停止します。
   2. talend-remote-engineサービスをアンインストールする場合は、次のコマンドを実行します:
      1. * Ubuntu/Debianの場合:
           ```
           rm /etc/init.d/talend-remote-engine-service
           ```
         * CentOS/Red Hat/Fedoraの場合:
           ```
           chkconfig talend-remote-engine-service --del
           rm /etc/init.d/talend-remote-engine-service 
           ```