Notes on supervisor #
The supervisor process control tool ensures that all zegami linux processes are up and running. Each service is started via a file in the /etc/supervisor/conf.d directory.
UWSGI Config #
/etc/supervisor/conf.d/zegami_uwsgi.conf
Starts the UWSGI server to accept Zegami web requests. Can be used to configure the number of web server processes used and other resource management.
If you make a change to the python files or Zegami configuration, reload the configuration with
sudo supervisorctl restart zegami_uwsgi
MongoDB Config #
Since version 1.7.12.21 we are using the MongoDB install which comes with Ubuntu or centos. The data is still stored in
/zegami/mongodb_data
The config file is found in:
/etc/mongod.conf
To reload the configuration use
sudo service mongod restart
The log file is located in
/var/log/mongodb/mongod.log
NGINX Supervisor Config #
/etc/supervisor/conf.d/zegami_nginx.conf
Starts the nginx web server
NGINX Webserver Config #
` /opt/zegami/conf/nginx.conf
(formerly located in /opt/zegami_python/anaconda/etc/nginx/nginx.conf)`
This file points the nginx web server at the static files such as CSS and Javascript as well as the collection html files for the CLI install.
To set up a collection via the CLI see here
To reload the configuration use
sudo supervisorctl restart zegami_nginx
Zegami Services Supervisor Config #
/etc/supervisor/conf.d/zegami_services.conf
This file ensures that the services for logging and collection processing are running.
Zegami Services Config #
/opt/zegami/conf/settings.conf
This settings file controls the locations of data files and other aspects of the system as described here.