CA APMIA Agent systemd configuration

Document ID : KB000119986
Last Modified Date : 06/11/2018
Show Technical Document Details
Introduction:
The APM Infrastructure Agent provides a script,  apmia-ca-installer.sh, to control startup/shutdown of the agent with system.d
This is a suggestion of how it can be integrated into a system.d service
Instructions:
This is a suggestion of the information to include in the service description

[Unit]
Description=CA APMIA
After=network.target
Wants=multi-user.target

[Service]
ExecStart=/apmia/apmia-ca-installer.sh force_start
ExecReload=/apmia/apmia-ca-installer.sh restart
ExecStop=/apmia/apmia-ca-installer.sh stop
KillMode=process
Restart=on-failure
RestartSec=42s
Type=forking

[Install]
WantedBy=multi-user.target