- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我有一个使用 supervisord 运行的 tornado 网络应用程序。我从 ssh 手动启动、停止和重新启动 Supervisord 服务,它工作正常。我正在使用本地机器上的结构来执行以下操作:
我在运行 fabfile 时没有收到任何错误,但我的服务器在运行后出现故障。以下是我的 fabfile 代码:
from fabric.api import *
from fabric.context_managers import settings
def prepare_deploy():
local('py.test')
local('git add .')
x = raw_input('what would you like your commit message to be? ')
local('git diff --quiet --exit-code --cached || git commit -m "' + x + '"')
local('git push origin master')
def dev():
prepare_deploy()
x = raw_input('Please enter the location of your keyFile for the dev server ')
if x == '':
key = 'key_file'
else:
key = x
with settings(
host_string='dev_server_name',
user='user_name',
Key_filename=key,
use_ssh_config = True):
code_dir='~/path/to/code/'
with cd(code_dir):
run("git pull origin master")
run("sudo python setup.py install")
run("sudo service supervisord restart")
完成此操作后,我的 Web 应用程序将关闭。关于为什么会发生这种情况的任何想法?
最佳答案
Supervisor 是一个管理服务的工具,不需要重启它就可以重启它控制的东西。
它带有一个命令行工具来管理进程,supervisorctl .您可以将其用作 CLI 界面或交互式 shell。
如果要重启服务supervisorctl restart <service name>
(具有适当的权限,所以可能使用 sudo
做到这一点。如果您更改了服务的配置,请使用 supervisorctl update
重新启动受影响的进程。这样您就可以使用主管的日志文件,以防您的进程未启动。
关于python - 结构重新启动我的 supervisord 服务终止服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17732042/
我在 Supervisord 的程序部分使用了环境变量,它们工作得很好: [program:some_prog] command=%(ENV_env_var_name)s/... 我不知道如何在 [s
我们有一个问题,supervisord 无法同时处理 200 多个进程 - 添加更多进程会导致它在启动时死亡。 任何人都对 supervisord 和大量托管流程有任何经验? 最佳答案 想通了 - 这
假设我已经在我的机器上运行了一个 supervisord 进程。如何为 supervisord 添加一个新的服务/进程来监控?例如,假设我有这个简单的 .conf 文件: 运行-suman-daemo
我正在使用Supervisord持续运行一些索引程序。每次运行索引器时,它都会获取一组特定的文档,对它们进行索引,然后结束。然后,该 Supervisord 进程将生成另一个相同的索引器程序,并且该索
我使用 supervisord 作为 Docker 容器的入口点,如 https://docs.docker.com/articles/using_supervisord/ 中所述, 我希望将所有日志
我正在使用 supervisord 来管理 docker 容器中的多个进程。然而,一个进程始终是“主人”,而其他进程是监视和报告进程。如果主进程在 startretries 后无法启动,我想做的是终止
移至使用 supervisod作为过程控制系统。 我有一个 长并在我的 supervisord.conf 中重复 ENVIRONMENT 配置,为很多进程设置很多环境变量。我需要在一个地方定义它并重用
我正在尝试编写一个 supervisord.conf 来启动一个 django fastcgi 进程。唯一的问题是,当我执行我的 fastcgi 命令时,它会生成一个 fastcgi 进程并立即在主管
程序优先级是否决定启动顺序?即 baz然后 bar ? 如果我有: [group:foo] programs=bar,baz 和: [program:bar] command=/path/to/bar
问题 我无法让主管正确跟踪正在运行的进程。我正在运行3.0a8版本。 这是我的supervisor.conf文件 [inet_http_server] port=9011 [supervisord]
有没有办法从内到外重启supervisor? 我正在通过主管运行脚本,以更新树莓派上的 html 和视频。但在某些时候,我必须在主管上运行的 2 个进程之间切换。所以我将必须结束的进程的配置重命名为“
我有 supervisord安装在我的 Ubuntu 10.04 上,它持续运行一个 Java 进程,并且应该在它以某种方式死亡或崩溃时修复(重新加载)进程。 在我的 htop我向那个 发送 SIGK
我正在使用 supervisord 来管理一堆进程。是否可以使用 supervisorctl 向这些进程发送任意信号而不实际停止它们并设置停止信号? 最佳答案 直到 3.2.0(2015 年 11 月
我有一个开发服务器,我经常通过 Git 推送代码更改。每次推送后,我需要手动登录服务器并重新启动主管进程。 有没有办法让 Supervisor 监视文件系统目录的更改并在更改时重新加载进程? 最佳答案
我有一组由 supervisord 管理的程序。有一个程序,我们称它为 myprogram,我需要运行 15 个实例。使用 numprocs 参数很容易。 有没有办法将进程号作为命令行参数传递给程序,
可以说我在主管中有两个程序。有没有一种方法可以有条件地运行第一个程序(后台进程)而不必将其移动到单独的脚本文件中? [supervisord] nodaemon=true logfile=/tmp/s
当您使用supervisor启动流程时,它处于“正在启动”状态,如果遇到麻烦,并且将自动重新启动设置为true,那么它将进入“退避”状态。 我不想等待尝试“startretries”,我想使用supe
是否可以在supervisord启动脚本中使用本地主机名?我需要它将 jmx 主机传递给 java 程序。示例: command=HOSTNAME=foo.bar /usr/local/rvm/bin
我正在使用supervisord运行一些进程,名为process1、process2、...、process8。如果我想重新启动进程{1-4},我该如何使用supervisorctl来做到这一点? 最
已关闭。此问题不符合Stack Overflow guidelines 。目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a software
我是一名优秀的程序员,十分优秀!