Skip to content

Instantly share code, notes, and snippets.

@MostafaNorzade
Last active July 22, 2020 13:32
Show Gist options
  • Save MostafaNorzade/8b088aefc3e1a0ae78a5440085fb60ee to your computer and use it in GitHub Desktop.
Save MostafaNorzade/8b088aefc3e1a0ae78a5440085fb60ee to your computer and use it in GitHub Desktop.
install: pip install supervisor
configure:
mkdir -p /etc/supervisord/conf.d
echo_supervisord_conf > /etc/supervisord/supervisord.conf
echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf
setup as service: wget supervisord.service -O /usr/lib/systemd/system/supervisord.service
start service systemctl start supervisord
view service status: systemctl status supervisord
auto start service on system startup: systemctl enable supervisord
https://laravel-news.com/how-to-run-workers-in-production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment