Skip to content

Instantly share code, notes, and snippets.

@greenbicycle
Last active May 5, 2016 19:21
Show Gist options
  • Save greenbicycle/eb4ffd46160c1e6be7b25e8789ef0283 to your computer and use it in GitHub Desktop.
Save greenbicycle/eb4ffd46160c1e6be7b25e8789ef0283 to your computer and use it in GitHub Desktop.
Configuration Notes for supervisor

Copy the following to /etc/supervisor/conf.d/mysql.conf

[program:mysqld]
command=/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock

Add this to /etc/supervisor/supervisord.conf

[inet_http_server]
port = :9001
username = <username>
password = <password>

Then you can view supervisor from the web at http://:9001

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment