Created
January 9, 2015 04:45
-
-
Save prologic/d3236e889d2796305050 to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install supervisor | |
pip install supervisor | |
# Create configuration and log directories | |
mkdir -p /etc/supervisor.d /var/log/supervisor | |
# Copy default configuration | |
cp supervisord.conf /etc/ | |
# Copy program configurations | |
cp supervisor.d/* /etc/supervisor.d/ | |
chown -R root:supervisor /etc/supervisor.d | |
chmod 775 /etc/supervisor.d && chmod 664 /etc/supervisor.d/*.conf | |
# Setup SysVInit script | |
cp supervisord.rc /etc/init.d/supervisord | |
# Add system supervisor group | |
getent group supervisor || groupadd -r supervisor | |
# Add vagrant user to supervisor group | |
usermod -a -G supervisor vagrant | |
# Enable service | |
chkconfig supervisord on | |
service supervisord restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment