$ sudo apt-get install supervisor
$ sudo ln -s /etc/supervisor/supervisord.conf /etc/
$ sudo systemctl enable supervisor.service
Now add program config files
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl restart all
www ALL=(root) NOPASSWD:/usr/bin/supervisorctl status
www ALL=(root) NOPASSWD:/usr/bin/supervisorctl restart *