MGT Development Environment - Services

All services like NGINX, PHP-FPM, MySQL, Varnish, Elasticsearch are managed via supervisord.

All services except postfix are automatically started when the container is being started.

Supervisor Configuration

In the following file /etc/supervisor/conf.d/supervisord.conf you find all services defined.

[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
numprocs=1
autostart=true
autorestart=true
stopsignal=KILL
......

Services

With the command supervisorctl you see the Status, PID and Uptime of all services:

Services

Restarting a Service

With supervisorctl you can start, stop and restart services like Varnish for example:

supervisorctl restart varnish

Logs

For each service, you find a log file in the following directory: /var/log/supervisor/ that can be tailed:

tail -f /var/log/supervisor/supervisord.log -n1000