Skip to content

Instantly share code, notes, and snippets.

@oucb
Forked from mozillazg/supervisord.service
Created November 14, 2018 03:24
Show Gist options
  • Save oucb/2fc45ec3519a43daf6f1576dc365d26a to your computer and use it in GitHub Desktop.
Save oucb/2fc45ec3519a43daf6f1576dc365d26a to your computer and use it in GitHub Desktop.

Revisions

  1. @mozillazg mozillazg revised this gist Jan 13, 2016. No changes.
  2. @mozillazg mozillazg revised this gist Jan 9, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions usage.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    1. install:
    `pip install supervisor`
    2. configure:
    1. `mkdir -d /etc/supervisord/conf.d`
    1. `mkdir -p /etc/supervisord/conf.d`
    2. `echo_supervisord_conf > /etc/supervisord/supervisord.conf`
    3. `echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf`
    3. setup as service:
    `wget supervisord.service -O /usr/lib/systemd/system/supervisord.service`
    4. start service
    `systemctl start supervisord`
    5. view sevice status:
    5. view service status:
    `systemctl status supervisord`
    6. auto start service on system startup:
    `systemctl enable supervisord`
  3. @mozillazg mozillazg revised this gist Jan 9, 2016. 1 changed file with 11 additions and 7 deletions.
    18 changes: 11 additions & 7 deletions usage.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,14 @@
    1. install:
    `pip install supervisor`
    2. configure:
    `mkdir -d /etc/supervisord/conf.d`
    `echo_supervisord_conf > /etc/supervisord/supervisord.conf`
    `echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf`
    5. setup as service: `wget supervisord.service -O /usr/lib/systemd/system/supervisord.service`
    6. start service: `systemctl start supervisord`
    7. view sevice status: `systemctl status supervisord`
    8. auto start service on system startup: `systemctl enable supervisord`
    1. `mkdir -d /etc/supervisord/conf.d`
    2. `echo_supervisord_conf > /etc/supervisord/supervisord.conf`
    3. `echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf`
    3. setup as service:
    `wget supervisord.service -O /usr/lib/systemd/system/supervisord.service`
    4. start service
    `systemctl start supervisord`
    5. view sevice status:
    `systemctl status supervisord`
    6. auto start service on system startup:
    `systemctl enable supervisord`
  4. @mozillazg mozillazg revised this gist Jan 9, 2016. 2 changed files with 14 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions supervisord.service
    Original file line number Diff line number Diff line change
    @@ -5,10 +5,10 @@ After=network.target

    [Service]
    Type=forking
    ExecStart=/usr/bin/supervisord -c /etc/supervisord/supervisord.conf
    ExecReload=/usr/bin/supervisorctl reload
    ExecStop=/usr/bin/supervisorctl shutdown
    User=noboby
    ExecStart=/bin/supervisord -c /etc/supervisord/supervisord.conf
    ExecReload=/bin/supervisorctl reload
    ExecStop=/bin/supervisorctl shutdown
    User=root

    [Install]
    WantedBy=multi-user.target
    10 changes: 10 additions & 0 deletions usage.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    1. install:
    `pip install supervisor`
    2. configure:
    `mkdir -d /etc/supervisord/conf.d`
    `echo_supervisord_conf > /etc/supervisord/supervisord.conf`
    `echo "files = conf.d/*.conf" >> /etc/supervisord/supervisord.conf`
    5. setup as service: `wget supervisord.service -O /usr/lib/systemd/system/supervisord.service`
    6. start service: `systemctl start supervisord`
    7. view sevice status: `systemctl status supervisord`
    8. auto start service on system startup: `systemctl enable supervisord`
  5. @mozillazg mozillazg revised this gist Jan 9, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion supervisord.service
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,10 @@ After=network.target

    [Service]
    Type=forking
    ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf
    ExecStart=/usr/bin/supervisord -c /etc/supervisord/supervisord.conf
    ExecReload=/usr/bin/supervisorctl reload
    ExecStop=/usr/bin/supervisorctl shutdown
    User=noboby

    [Install]
    WantedBy=multi-user.target
  6. @tonyseek tonyseek created this gist Aug 8, 2014.
    13 changes: 13 additions & 0 deletions supervisord.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    [Unit]
    Description=supervisord - Supervisor process control system for UNIX
    Documentation=http://supervisord.org
    After=network.target

    [Service]
    Type=forking
    ExecStart=/usr/bin/supervisord -c /etc/supervisord.conf
    ExecReload=/usr/bin/supervisorctl reload
    ExecStop=/usr/bin/supervisorctl shutdown

    [Install]
    WantedBy=multi-user.target