-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmmetering_celerybeat.conf
46 lines (34 loc) · 1.54 KB
/
mmetering_celerybeat.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
; ==================================
; celery beat mmetering supervisor
; ==================================
; the name of your supervisord program
[program:mmeteringcelerybeat]
; Set full path to celery program if using virtualenv
command=/home/mmetering/mmetering-server/env/bin/celery -A mmetering_server beat --loglevel=INFO
; The directory to your Django project
directory=/home/mmetering/mmetering-server
; If supervisord is run as the root user, switch users to this UNIX user account
; before doing any processing.
user=mmetering
; Supervisor will start as many instances of this program as named by numprocs
numprocs=1
; redirect stderr to stdout
redirect_stderr=true
; Put process stdout output in this file
stdout_logfile=/var/log/mmetering/mmetering_beat.log
; set max number of backups (default is 10)
stdout_logfile_backups=3
; If true, this program will start automatically when supervisord is started
autostart=true
; May be one of false, unexpected, or true. If false, the process will never
; be autorestarted. If unexpected, the process will be restart when the program
; exits with an exit code that is not one of the exit codes associated with this
; process’ configuration (see exitcodes). If true, the process will be
; unconditionally restarted when it exits, without regard to its exit code.
autorestart=true
; The total number of seconds which the program needs to stay running after
; a startup to consider the start successful.
startsecs=10
; if your broker is supervised, set its priority higher
; so it starts first
priority=999