Skip to content

Instantly share code, notes, and snippets.

@channeng
Created October 23, 2017 15:22
Show Gist options
  • Select an option

  • Save channeng/3414510a199798d768e8f865e33a0e04 to your computer and use it in GitHub Desktop.

Select an option

Save channeng/3414510a199798d768e8f865e33a0e04 to your computer and use it in GitHub Desktop.
; ================================
; redis supervisor
; ================================
[program:redis]
command=/path/to/celery-scheduler/redis-3.2.1/src/redis-server
directory=/path/to/celery-scheduler/redis-3.2.1
user=root
numprocs=1
stdout_logfile=/var/log/redis/redis.log
stderr_logfile=/var/log/redis/redis_err.log
autostart=true
autorestart=true
startsecs=10
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=true
; if rabbitmq is supervised, set its priority higher
; so it starts first
priority=998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment