I also created a unit file with the start/stop commands to run the standalone on-premise controller as a service in a Linux environment without using the script.
[Unit]
Description = AppDynamics After=network.target
[Service]
TimeoutStartSec=600
Type=forking
ExecStartPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh start-platform-admin
ExecStartPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh login --user-name <user> --password <password>
ExecStartPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh start-controller-db --platform-name=<platform name>
ExecStart=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh start-controller-appserver --platform-name=<platform name>
ExecStopPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh stop-controller-db --platform-name=<platform name>
ExecStopPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh stop-controller-db --platform-name=<platform name>
ExecStop=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh stop-platform-admin
Restart=always
User=ubuntu
Group=ubuntu
[Install]
WantedBy=multi-user.target
Then I ran systemctl daemon-reload to reflect the changes.
==============================
I also created the unit file below and verified that this unit file also works well.
[Unit]
Description = AppDynamics After=network.target
[Service]
TimeoutStartSec=600
Type=forking
ExecStartPre=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh start-platform-admin
ExecStartPre=<APPD HOME>/platform/product/controller/bin/controller.sh start-db
ExecStart=<APPD HOME>/platform/product/controller/bin/controller.sh start-appserver
ExecStopPre=<APPD HOME>/platform/product/controller/bin/controller.sh stop-appserver
ExecStopPre=<APPD HOME>/platform/product/controller/bin/controller.sh stop-db
ExecStop=<APPD HOME>/platform/platform-admin/bin/platform-admin.sh stop-platform-admin
Restart=always
User=ubuntu
Group=ubuntu
[Install]
WantedBy=multi-user.target
※ I ran systemctl daemon-reload to reflect the changes.
... View more