forked from cisagov/Malcolm
-
Notifications
You must be signed in to change notification settings - Fork 54
/
supervisord.conf
89 lines (79 loc) · 1.93 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
79
80
81
82
83
84
85
86
87
88
89
; Copyright (c) 2023 Battelle Energy Alliance, LLC. All rights reserved.
[inet_http_server]
port=0.0.0.0:9001
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=http://127.0.0.1:9001
[group:netbox]
programs=main,worker,housekeeping,initialization
[program:main]
command=/opt/netbox/launch-netbox.sh
autostart=true
autorestart=true
startsecs=180
stopwaitsecs=30
startretries=0
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
redirect_stderr=true
[program:initialization]
command=/opt/netbox/venv/bin/python /usr/local/bin/netbox_init.py
--wait
--url "http://localhost:8080/netbox"
--token "%(ENV_SUPERUSER_API_TOKEN)s"
--net-map /usr/local/share/net-map.json
--library "%(ENV_NETBOX_DEVICETYPE_LIBRARY_PATH)s"
autostart=true
autorestart=false
startsecs=0
startretries=0
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
redirect_stderr=true
[program:worker]
command=/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py rqworker
autostart=true
autorestart=true
startsecs=60
stopwaitsecs=30
startretries=0
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
redirect_stderr=true
[program:housekeeping]
command=/opt/netbox/housekeeping.sh
autostart=true
autorestart=true
startsecs=60
stopwaitsecs=30
startretries=0
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stdout_logfile_backups=0
redirect_stderr=true
[program:cron]
command=/usr/local/bin/supercronic -json "%(ENV_SUPERCRONIC_CRONTAB)s"
autostart=%(ENV_NETBOX_CRON)s
autorestart=%(ENV_NETBOX_CRON)s
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true