Supervisor: Updating list of applications on a host
In the server, the list of applications that supervisor loads can be found from /etc/supervisor/supervisord.conf under the [include] block like so:
[include]
files=/etc/attracs-supervisor/attracs-managevisor-agent-v2.conf /etc/attracs-supervisor/tms-booking-stable-v2.conf /etc/attracs-supervisor/tms-planner-3-stable-v2.conf /etc/attracs-supervisor/tms-drivers-stable-v2.conf /etc/attracs-supervisor/tms-fleet-stable-v2.conf /etc/attracs-supervisor/tms-feedback-stable-v2.conf /etc/attracs-supervisor/tms-reports-stable-v2.conf
To update this list:
1. Make changes to the corresponding server file in the attracs-linux-playbooks repository in supervisord/config/hosts/<your-server-file.json>
2. Remember to git push
3. in the root of attracs-linux-playbooks, run this:
ansible-playbook supervisord/supervisord-update-all-configs.yml -l <server-1>,<server-2> --vault-password-file=.vault_password_file
sudo systemctl restart supervisor.service