4
1

More than 1 year has passed since last update.

Secure Agentを自動起動する

Posted at

Informatica Intelligent Cloud ServicesのSecure AgentをSystemdで自動起動するユニットファイルのサンプルです。
WindowsではSecure AgentをインストールするとWindowsサービスに自動登録されますが、Linuxでは手動で設定する必要があります。

本記事では以下の環境にSecure Agentをインストールしています。
OS: Ubuntu 20.04
User/Group: ubuntu/ubuntu
Install Path: /home/ubuntu/infaagent

  1. ユニットファイルを作成する

    1. /etc/systemd/system/SecureAgent.serviceをというファイルを新規作成します。
    2. SecureAgent.serviceにSecure Agentの起動のための情報を定義します。ユーザー名やパスなどはご利用の環境に合わせて変更してください。
      SecureAgent.service
      [Unit]
      Description=Secure Agent Startup Service
      After=syslog.target network.target
      
      [Service]
      Type=forking
      User=ubuntu
      Group=ubuntu
      StandardOutput=console
      WorkingDirectory=/home/ubuntu/infaagent/apps/agentcore
      ExecStart=/home/ubuntu/infaagent/apps/agentcore/infaagent startup
      ExecStop=/home/ubuntu/infaagent/apps/agentcore/infaagent shutdown
      SyslogIdentifier=SecureAgent.service
      TimeoutStopSec=300
      
      [Install]
      WantedBy=default.target
      
  2. サービスを起動する

    1. 次のコマンドでサービスを有効化し、起動します。
      $ sudo systemctl enable SecureAgent
      $ sudo systemctl start SecureAgent
      

ユニットファイルの内容で過不足や変更したほうがよい記述があればコメントいただけますと幸いです。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1