Browse Source

debug 2

master
zeus 3 years ago
parent
commit
46a191ca58
  1. 2
      run.yml
  2. 5
      src-local/myconfig/sec_bootstrap
  3. 28
      src-local/myconfig/supervisord.conf

2
run.yml

@ -138,7 +138,7 @@ services:
- ${nodepath}/src-local/myconfig/sec_bootstrap:/usr/bin/sec_bootstrap
- ${nodepath}/src-local/myconfig/nginx.conf:/etc/nginx/nginx.conf
- ${nodepath}/src-local/myconfig/default.conf:/etc/nginx/conf.d/default.conf
# - ${nodepath}/src-local/myconfig/supervisord.conf:/etc/supervisor/supervisord.conf
- ${nodepath}/src-local/myconfig/supervisord.conf:/etc/supervisor/supervisord.conf
- /etc/localtime:/etc/localtime:ro
networks:
hybrid-net:

5
src-local/myconfig/sec_bootstrap

@ -45,11 +45,8 @@ case $ROLE in
# Auto update default host file in background and dumb all output
auto_update_hosts "${HOSTNAMES}" > /dev/null 2>&1 &
#/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
#ttyd -p 3787 bash &
nginx
sleep 3
nginx
tail -f /dev/null
# Start ssh server
#/usr/sbin/sshd -D

28
src-local/myconfig/supervisord.conf

@ -0,0 +1,28 @@
[unix_http_server]
file=/dev/shm/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/var/log/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 ; (min. avail process descriptors;default 200)
user=root ;
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket
[include]
files = /etc/supervisor/conf.d/*.conf
[program:nginx]
command=/usr/sbin/nginx
numprocs=1
autostart=true
autorestart=true
Loading…
Cancel
Save