December 2017
Intermediate to advanced
316 pages
6h 58m
English
We can easily install supervisord on Ubuntu 16.04, with the apt-get command:
sudo apt-get install -y supervisor
This installs two tools, supervisor and supervisorctl. supervisorctl is intended to control the supervisord and add tasks, restart tasks, and so on.
On macOS X, we can install supervisor using the brew command:
brew install supervisor
Now, create a configuration file at:
/etc/supervisor/conf.d/goproject.conf
You can add any number of configuration files, and supervisord treats them as separate processes to run. Add the following content to the preceding file:
[supervisord]logfile = /tmp/supervisord.log
[program:myserver]command=$GOPATH/bin/romanserverautostart=trueautorestart=trueredirect_stderr=true
By default, ...