supervisord 启动 carbon-cache.py失败的问题

发布于 2022-09-06 01:31:11 字数 566 浏览 37 评论 0

2017-10-19 11:57:01,265 INFO exited: up_carbon (exit status 1; not expected)
2017-10-19 11:57:01,265 DEBG received SIGCLD indicating a child quit
2017-10-19 11:57:02,266 INFO gave up: up_carbon entered FATAL state, too many start retries too quickly

搭建好graphite-web之后,想将carbon-cache.py的启动命令由supervisord进行管理。

但是发现carbon-cache.py start命令直接就是守护进程。没有办法由supervisord进行监控状态。

有没有办法,可以将carbon-cache.py取消守护模式呢?就像nginx的daemon off一样配置。

在线等,求大神指点

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空‖城人不在 2022-09-13 01:31:11

自我回答一下

# /usr/bin/python /opt/graphite/bin/carbon-cache.py --help
Usage: carbon-cache.py [options] <start|stop|status>

Options:
  -h, --help            show this help message and exit
  --debug               Run in the foreground, log to stdout
  --syslog              Write logs to syslog
  --nodaemon            Run in the foreground
  --profile=PROFILE     Record performance profile data to the given file
  --profiler=PROFILER   Specify the profiler to use
  --pidfile=PIDFILE     Write pid to the given file
  --umask=UMASK         Use the given umask when creating files
  --config=CONFIG       Use the given config file
  --whitelist=WHITELIST
                        Use the given whitelist file
  --blacklist=BLACKLIST
                        Use the given blacklist file
  --logdir=LOGDIR       Write logs in the given directory
  --instance=INSTANCE   Manage a specific carbon instance

从帮助中找到这个命令参数,可以取消守护模式,运行到前台,这样就可以顺利使用supervisord进行监控了
--nodaemon Run in the foreground

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文