OceanDataTools / openrvdas

An open source data acquisition system designed for use on research vessels and other scientific installations
http://openrvdas.org
Other
39 stars 20 forks source link

Split supervisor files by functionality #362

Closed davidpablocohn closed 7 months ago

davidpablocohn commented 8 months ago

Right now, all the OpenRVDAS scripts that are managed by supervisord are called from one definition file: /etc/supervisor/conf.d/openrvdas.conf (or similar, depending on whether Ubuntu, RHEL or MacOS). This means that when, for example, you want to add/remove/change whether the data simulator is running, you go in and edit that master file. Also, if you want to use a different GUI such as the SQlite GUI, you need to mess with everything. Because supervisord is configured to load everything in its conf directory that has the correct suffix, it seems better to have those script invocations broken up by functionality, e.g:

openrvdas.conf - header information openrvdas_logger_manager.conf openrvdas_cached_data.conf openrvdas_simulator.conf - just runs simulator openrvdas_django.conf - runs web portion of django code openrvdas_influx.conf - this one is already broken out

This way, when you wanted to change GUIs, you could just rename openrvdas_django.conf and openrvdas_logger_manager.conf to .bak files, add in the new ones, and reload.