To automatically restart APM Insight PHP agent during system reboots, use the below given steps:
For systemd servers:
From APM Insight PHP agent version 2.8, agent will automatically start during server reboots for systemd supported Linux flavors.
For non systemd servers:
1. Edit the /etc/rc.local file
2. Add the following lines to the rc.local,
1. cd /opt/zpa/bin2. sh run.sh restart