https://github.com/alexzhangs/supervisord
Supervisor init.d script for Amazon Linux AMI.
https://github.com/alexzhangs/supervisord
amazon-linux-ami supervisord
Last synced: 9 months ago
JSON representation
Supervisor init.d script for Amazon Linux AMI.
- Host: GitHub
- URL: https://github.com/alexzhangs/supervisord
- Owner: alexzhangs
- Created: 2019-06-25T21:11:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T15:23:42.000Z (about 5 years ago)
- Last Synced: 2025-01-08T13:52:03.565Z (over 1 year ago)
- Topics: amazon-linux-ami, supervisord
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# supervisord
Supervisor init.d script for Amazon Linux AMI.
Tested with:
* supervisor 4.0.3 on
* Amazon Linux AMI
* supervisor 4.0.3 and 4.2.1 on
* Amazon Linux 2 AMI
Originally forked from: https://gist.github.com/mhayes/866900
## Why does this repo exist?
1. `supervisor` is availabe in
[yum repo](http://supervisord.org/installing.html#installing-a-distribution-package),
an init.d script like this(not same) is also included. But
currently(2019-06) the version is still 2.1, far behind the current
stable version 4.0.3. Also version 2.1 supports python 2.6 only,
doesn't work with python 2.7.
2. Installing `supervisor` with pip is recommended by [official
document](http://supervisord.org/index.html). But these's no init.d
script included in the package.
## Installation
```
git clone https://github.com/alexzhangs/supervisord
cp -a supervisord/supervisord /etc/init.d/
chmod 755 /etc/init.d/supervisord
chkconfig supervisord on
```
Or more directly way:
```
curl https://raw.githubusercontent.com/alexzhangs/supervisord/master/supervisord -o /etc/init.d/supervisord
chmod 755 /etc/init.d/supervisord
chkconfig supervisord on
```
Or use [xsh](https://github.com/alexzhangs/xsh) and its lib [aws](https://github.com/xsh-lib/aws) if you have set it up already:
```
# install supervisor, and the InitScript(this repo), set autostart, and start the service
xsh aws/gist/ec2/linux/installer/supervisor -i -o -s -v 4.0.3
```
## Usage
```
service supervisord start
service supervisord stop
```