An open API service indexing awesome lists of open source software.

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.

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
```