-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.conf
executable file
·78 lines (71 loc) · 3.28 KB
/
supervisord.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
[supervisord]
logfile=/dev/null ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=0 ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=0 ; (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=true ; (start in foreground if true;default false)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:nginx] ## This is the part where we give the name and add config for our 1st service
command=nginx -g 'daemon off;'
autostart=true
autorestart=true ## This setting specifies that the supervisor will restart the service in case of failure
catch_workers_output = Yes
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
#[program:php-fpm] ## This is the part where we give the name and add config for our 1st service
#command=/usr/sbin/php-fpm
#autostart=true
#autorestart=true ## This setting specifies that the supervisor will restart the service in case of failure
#catch_workers_output = Yes
#stdout_events_enabled=true
#stderr_events_enabled=true
#stdout_logfile_maxbytes=0
#stderr_logfile_maxbytes=0
#stdout_logfile=/dev/stdout
#stderr_logfile=/dev/stderr
#nodaemon=true
[program:pdns] ## This is the part where we give the name and add config for our 1st service
command=/usr/sbin/pdns_server ## This is the main command to run our 1st service
autorestart=true ## This setting specifies that the supervisor will restart the service in case of failure
catch_workers_output = Yes
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
nodaemon=true
#[program:pdns_recursor] ## This is the part where we give the name and add config for our 1st service
#command=/usr/sbin/pdns_recursor --config-dir=/etc/pdns-recursor/ ## This is the main command to run our 1st service
#autorestart=true ## This setting specifies that the supervisor will restart the service in case of failure
#catch_workers_output = Yes
#stdout_events_enabled=true
#stderr_events_enabled=true
#stdout_logfile_maxbytes=0
#stderr_logfile_maxbytes=0
#stdout_logfile=/dev/stdout
#stderr_logfile=/dev/stderr
#nodaemon=true
[program:powerdns-admin] ## This is the part where we give the name and add config for our 1st service
directory=/var/www/html/pdns
command=gunicorn --pid /run/powerdns-admin/pid --bind unix:/run/powerdns-admin/socket 'powerdnsadmin:create_app()'
autorestart=true ## This setting specifies that the supervisor will restart the service in case of failure
catch_workers_output = Yes
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
nodaemon=true