Skip to content

Instantly share code, notes, and snippets.

@prologic
Created January 9, 2015 04:45
Show Gist options
  • Save prologic/d3236e889d2796305050 to your computer and use it in GitHub Desktop.
Save prologic/d3236e889d2796305050 to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
#!/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