Supervisord Install without Internet Access Guide

  • source code: supervisor-3.3.1.tar.gz (https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz)

Install

# cd supervisor
# python setup.py install

Configuration

# mkdir /etc/supervisor
# echo_supervisord_conf > /etc/supervisor/supervisord.conf

Replace [include] module

;[include] => [include]
; files = relative/directory/*.ini => files = conf.d/*.conf

Program Loading

  • Under dir /etc/supervisor/conf.d/
# cat /etc/supervisor/conf.d/azkaban-executor.conf

[program: azkaban-executor]
command=sh ./bin/azkaban-executor-start.sh
directory=/usr/local/azkaban/azkaban-exec-server/ ; 命令执行的目录
;autorestart=true ; 程序意外退出是否自动重启
;autostart=true ; 是否自动启动
;stderr_logfile=/var/log/azkaban-executor.err.log ; 错误日志文件
;stdout_logfile=/var/log/azkaban-executor.out.log ; 输出日志文件
;environment=ASPNETCORE_ENVIRONMENT=Production ; 进程环境变量
;user=root ; 进程执行的用户身份
;stopsignal=INT
;startsecs=1 ; 自动重启间隔
autostart=true
autorestart=true
user=root
redirect_stderr=true
stderr_logfile=/var/log/azkaban-executor.err.log ; 错误日志文件
stdout_logfile=/var/log/azkaban-executor.out.log ; 输出日志文件

Run

# supervisord -c /etc/supervisor/supervisord.conf

 

 

 

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>