-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsupervisord.conf
63 lines (51 loc) · 1.17 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
[unix_http_server]
file = /tmp/supervisor.sock
chmod = 0777
chown= nobody:nogroup
[supervisord]
nodaemon = true
pidfile = /tmp/supervisord.pid
logfile = /var/log/supervisord/supervisord.log
childlogdir = /var/log/supervisord
[include]
files = /etc/supervisor/conf.d/*.conf
[supervisorctl]
serverurl = unix:///tmp/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
[program:indexer]
command=/bin/sh /sphinx-reindex.sh
autostart=true
autorestart=false
user=root
redirect_stderr=true
priority=1
environment = FORCE_REINDEX="yes"
[program:sphinx]
command=/usr/bin/searchd --nodetach -c /etc/sphinxsearch/sphinx.conf
autostart=false
autorestart=true
user=root
priority=100
redirect_stderr=true
[program:websearch]
command = uwsgi
--master
--socket 127.0.0.1:9000
--protocol uwsgi
--plugin python
--chdir /usr/local/src/web
--file websearch.py
--callable app
--workers 1
--threads 1
--vacuum
--harakiri 60
--harakiri-verbose
--max-requests 1000
autorestart = true
stopsignal = QUIT