Created
September 6, 2016 18:47
-
-
Save levabd/6d18fa4f825c542f824896987522922c to your computer and use it in GitHub Desktop.
Supervisor recipe for stack-updater
This file contains 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
[ | |
{ | |
"name": "SupervisorD", | |
"command": "/usr/bin/supervisord -v", | |
"required": "3.0.0", | |
"comparison": ">=", | |
"installer": "supervisord.sh", | |
"order": "1" | |
} | |
] |
This file contains 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 | |
set -e #exit immediately if a simple command exits with a nonzero exit value | |
apt-get update | |
apt-get remove -y supervisor | |
apt-get purge -y supervisor | |
apt-get install -y supervisor | |
sudo /etc/init.d/supervisor restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment