|
@@ -1,20 +1,34 @@
|
|
|
-[program:celery]
|
|
|
-command=/path/to//python /path/to/manage.py celeryd
|
|
|
-numprocs=1
|
|
|
-user=nobody
|
|
|
-stdout_logfile=/var/log/celery.log
|
|
|
-stderr_logfile=/var/log/celery.log
|
|
|
-
|
|
|
-[program:celerybeat]
|
|
|
-command=/path/to//python /path/to/manage.py celerybeat
|
|
|
-numprocs=1
|
|
|
-user=nobody
|
|
|
-stdout_logfile=/var/log/celerybeat.log
|
|
|
-stderr_logfile=/var/log/celerybeat.log
|
|
|
-
|
|
|
-[program:celerymon]
|
|
|
-command=/path/to//python /path/to/manage.py celerymon
|
|
|
-numprocs=1
|
|
|
-user=nobody
|
|
|
-stdout_logfile=/var/log/celerymon.log
|
|
|
-stderr_logfile=/var/log/celerymon.log
|
|
|
+[unix_http_server]
|
|
|
+file=/tmp/supervisor.sock ; path to your socket file
|
|
|
+
|
|
|
+[supervisord]
|
|
|
+logfile=/var/log/supervisord/supervisord.log ; supervisord log file
|
|
|
+logfile_maxbytes=50MB ; maximum size of logfile before rotation
|
|
|
+logfile_backups=10 ; number of backed up logfiles
|
|
|
+loglevel=info ; info, debug, warn, trace
|
|
|
+pidfile=/var/run/supervisord.pid ; pidfile location
|
|
|
+nodaemon=false ; run supervisord as a daemon
|
|
|
+minfds=1024 ; number of startup file descriptors
|
|
|
+minprocs=200 ; number of process descriptors
|
|
|
+user=root ; default user
|
|
|
+childlogdir=/var/log/supervisord/ ; where child log files will live
|
|
|
+
|
|
|
+
|
|
|
+[rpcinterface:supervisor]
|
|
|
+supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
|
|
+
|
|
|
+[supervisorctl]
|
|
|
+serverurl=unix:///tmp/supervisor.sock; use unix:// schem for a unix sockets.
|
|
|
+
|
|
|
+
|
|
|
+[include]
|
|
|
+
|
|
|
+# Uncomment this line for celeryd for Python
|
|
|
+;files=celeryd.conf
|
|
|
+
|
|
|
+# Uncomment this line for celeryd for Django.
|
|
|
+;files=django/celeryd.conf
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|