Contoh Konfigurasi Supervisor

Berikut ini contoh konfigurasi supervisor:

[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200

[program:quotely]
command=/home/kholidfu/quotely/bin/uwsgi --socket /tmp/uwsgi.sock --http :8000 --chdir /home/kholidfu/quotely/quotely/ --module quotely.wsgi --env DJANGO_SETTINGS_MODULE=quotely.settings --virtualenv /home/kholidfu/quotely --chmod-socket=666 --master --pidfile=/tmp/project-master.pid --harakiri=20 --max-requests=5000 --vacuum --home=/home/kholidfu/quotely/ --processes=5
directory=/home/kholidfu/quotely/
autostart=true
autorestart=true
stdout_logfile=/tmp/quotely.log
redirect_stderr=true

Jalankan supervisor

$ sudo supervisord -c supervisord.conf
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s