Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/illagrenan/ubuntu-supervisor-configuration
How to install and configure Supervisor using pip on Ubuntu 14.04.x || 16.04.x.
https://github.com/illagrenan/ubuntu-supervisor-configuration
supervisor ubuntu
Last synced: about 1 month ago
JSON representation
How to install and configure Supervisor using pip on Ubuntu 14.04.x || 16.04.x.
- Host: GitHub
- URL: https://github.com/illagrenan/ubuntu-supervisor-configuration
- Owner: illagrenan
- Created: 2016-04-12T09:48:41.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-26T20:37:52.000Z (over 7 years ago)
- Last Synced: 2024-12-28T07:06:58.719Z (about 1 month ago)
- Topics: supervisor, ubuntu
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 8
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tutorial how to install Supervisor on Ubuntu 14.04/16.04 (LTS versions) using pip
[![Build Status](https://travis-ci.org/illagrenan/ubuntu-supervisor-configuration.svg?branch=master)](https://travis-ci.org/illagrenan/ubuntu-supervisor-configuration)
**1) Install pip and supervisor:**
```bash
[sudo] pip install --upgrade pip
sudo pip install --upgrade supervisor
```**2) Add init script from this repository:**
```bash
sudo curl https://raw.githubusercontent.com/illagrenan/ubuntu-supervisor-configuration/master/supervisor.sh > /etc/init.d/supervisor
```
:bulb: Before executing this command, you should [review `supervisor.sh`](https://github.com/illagrenan/ubuntu-supervisor-configuration/blob/master/supervisor.sh)**3) Add *‚execute‘* permission:**
```bash
sudo chmod +x /etc/init.d/supervisor
```**4) Schedule:**
```bash
sudo update-rc.d supervisor defaults
```**5) Create main configuration file**
You have two options: **5A)** Use configuration [file from this repository](https://github.com/illagrenan/ubuntu-supervisor-configuration/blob/master/supervisord.conf) *OR* **5B)** Use [standard supervisor configuration file](http://supervisord.org/installing.html#creating-a-configuration-file).
**5A)**
Do not forget to **follow** steps 6)+7)
```bash
mkdir -p /etc/supervisor/
sudo curl https://raw.githubusercontent.com/illagrenan/ubuntu-supervisor-configuration/master/supervisord.conf > /etc/supervisor/supervisord.conf
```**5B)**
**Skip** steps 6)+7)
```bash
echo_supervisord_conf > /etc/supervisord.conf
```**(only for 5A) 6) Create log and conf directories:**
```bash
mkdir -p /var/log/supervisor
mkdir -p /etc/supervisor/conf.d/
```**(only for 5A) 7) Create new group:**
See `chown=root:supervisor` in configuration.
```bash
groupadd supervisor
```**8) Fix supervisorctl**
More info here: http://stackoverflow.com/a/17036409/752142
```bash
ln -s /etc/supervisor/supervisord.conf /etc/supervisord.conf
```**9) Use it:**
```bash
service supervisor stop
service supervisor start
```## Resources
* [Supervisor homepage and docs](http://supervisord.org/)
* [http://serverfault.com/a/96500/100080](http://serverfault.com/a/96500/100080)
* [https://github.com/Supervisor/initscripts/blob/master/ubuntu](https://github.com/Supervisor/initscripts/blob/master/ubuntu)