Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Starting the controller appserver and DB at Linux boot

Highlighted
Adventurer

Starting the controller appserver and DB at Linux boot

I have been playing around with creating a systemd service file for the contoller appserver and DB. I currently have this:

 

[Unit]
Description=AppDynamics Controller with DB
After=network.target

[Service]
Type=forking
ExecStart=/opt/appdynamics/enterpriseconsole/platform-admin/bin/platform-admin.sh start-controller-appserver --with-db
ExecStop=/opt/appdynamics/enterpriseconsole/platform-admin/bin/platform-admin.sh stop-controller-appserver --with-db
RemainAfterExit=yes
User=appdusr

[Install]
WantedBy=multi-user.target

However, this doesn't work as I need to login to the platform-admin first. First, I'm not quite sure how to do this in my service file. So I was thinking of creating a scipt that will log into the platform-admin then issue the 'platform-admin.sh start-controller-appserver --with-db' or the stop command, then the service file would just reference these scripts. Unless I'm overthinking this and thiers an easier way to do this. Any help would be great.

 

Thanks

Starting the controller appserver and DB at Linux boot
1 REPLY
Architect

Re: Starting the controller appserver and DB at Linux boot

I personally have not setup controller (as a service) in a non-HA mode but have read that the same is available for HA setup, you may want to look at the intstructions here and see if you can use them for your scenario.

 

https://docs.appdynamics.com/display/PRO44/Set+Up+a+High+Availability+Deployment#SetUpaHighAvailabil...