始める前に
次のコマンドはすべてスーパーユーザー権限で実行する必要があります。
手順
-
次のコマンドを使ってサービスファイルを作成します。
touch /etc/systemd/system/Talend-CommandLine.service
-
作成したファイルに、関連する権限を割り当てます。
chmod 664 /etc/systemd/system/Talend-CommandLine.service
-
設定に合わせて、次の内容をファイルに貼り付けます。
[Unit] Description=Talend CommandLine Service After=network.target [Service] WorkingDirectory=<CommandLinePath> ExecStart=/bin/bash commandline-linux_x86_64.sh start Type=simple [Install] WantedBy=default.target
-
サービスデーモンを再ロードします。
systemctl daemon-reload
-
サービスを開始します。
systemctl start Talend-CommandLine.service