Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on 01-15-2025 08:54 AM
When you run a standalone on-premise controller manually, you can follow the steps described in the documentation below: https://docs.appdynamics.com/appd/onprem/24.x/latest/en/controller-deployment/administer-the-control...
However, there might be situations where you need to run the standalone on-premise controller as a service in a Linux environment. If so, you can follow the steps below.
sudo -i
apt install libxml2-utils -y
ORyum install libxml2 -y
cd /opt/appdynamics/platform/product/controller/controller-ha
./set_mysql_password_file.sh -p <controller-db-password>
Output results:Checking if db credential is valid...
cd /opt/appdynamics/platform/product/controller/controller-ha/init
./install-init.sh -s
Output results:update-rc.d will be used for installing init
installed /etc/sudoers.d/appdynamics
installing /etc/init.d/appdcontroller-db
installing /etc/default/appdcontroller-db
installing /etc/init.d/appdcontroller
installing /etc/default/appdcontroller
systemctl enable appdcontroller
systemctl enable appdcontroller-db
systemctl restart appdcontroller
systemctl restart appdcontroller-db
systemctl status appdcontroller
systemctl status appdcontroller-db
Additionally, you might create your own unit file with the start/stop commands to run the standalone on-premise controller as a service in a Linux environment without using our script.
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.
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form