Skip to content

Instantly share code, notes, and snippets.

@trAve3113r
Last active January 16, 2019 18:00
Show Gist options
  • Save trAve3113r/dcb64be9c1f1391f3951baece0c2dd9d to your computer and use it in GitHub Desktop.
Save trAve3113r/dcb64be9c1f1391f3951baece0c2dd9d to your computer and use it in GitHub Desktop.
; Create default config file -- solves the unix server error
; credits: https://stackoverflow.com/questions/20067116/supervisorctl-error-unix-var-run-supervisord-sock-refused-connection
echo_supervisord_conf > /etc/supervisord.conf
sudo supervisord -c /etc/supervisord.conf
sudo supervisorctl status
; Missing '/var/run/supervisor.sock' file?
touch var/run/supervisor.sock
chmod 777 var/run/supervisor.sock
service supervisor restart
; Assign a different user other than root
; give permissions r+w to this user to files in certain dirs
chmod -R myuser:myuser /path/to/my/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment