【发布时间】:2022-08-13 23:39:04
【问题描述】:
我有一个运行 NGINX 的 /bin/NginxWrapper 脚本:
#!/bin/env sh
export LD_LIBRARY_PATH=$ENVIRONMENT_ROOT/lib/:$LD_LIBRARY_PATH
/bin/nginx
supervisord config 命令指向上面的脚本,这样当我们启动 Nginx 时,supervisor 会首先调用这个脚本
[program:nginx]
command=/bin/NginxWrapper -c /nginx/nginx.conf -g \"daemon off;\"
问题是,Superisord 现在存储的是这个脚本的 PID,而不是 Nginx 的 PID。如果我尝试将 HUP 发送到 Nginx,它就无法发送。
是否可以将supervisord中的PID更改为Nginx的PID? 或者 有没有办法链接 Supersivord 命令,这样我就不需要包装器,并且可以链接类似的东西
[program:nginx]
command= export LD_LIBRARY_PATH=$ENVIRONMENT_ROOT/lib/:$LD_LIBRARY_PATH && /bin/NginxWrapper -c /nginx/nginx.conf -g \"daemon off;\"
非常感谢...
标签: nginx supervisord