首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Systemctl:参数列表太长

Systemctl:参数列表太长
EN

Stack Overflow用户
提问于 2020-01-23 23:25:31
回答 1查看 952关注 0票数 0

我正在运行Centos 7,需要安装一个check_mk代理来获取机器统计信息。我已经通过rpm包成功地在同一集群的许多其他Centos 7中安装了代理,但在当前机器上,我得到了以下输出:

代码语言:javascript
运行
复制
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : check-mk-agent-1.5.0p9-1.noarch                                                                                                                                                             1/1 
Activating startscript of xinetd
Note: Forwarding request to 'systemctl enable xinetd.service'.
Failed to execute operation: Argument list too long
Starting xinetd...
Redirecting to /bin/systemctl start xinetd.service
Failed to start xinetd.service: Argument list too long
See system logs and 'systemctl status xinetd.service' for details.
  Verifying  : check-mk-agent-1.5.0p9-1.noarch                                                                                                                                                             1/1 

Installed:
  check-mk-agent.noarch 0:1.5.0p9-1 

我还注意到系统无法运行任何systemd新服务。出于测试目的,我创建了一个垃圾服务,它在/etc/systemd/system中的配置文件名为test.service,并简单地调用/root/test_service/下的一个python脚本。这是服务文件:

代码语言:javascript
运行
复制
[Unit]
Description=Example systemd service.

[Service]
Type=simple
ExecStart=/root/test_service/service

[Install]
WantedBy=multi-user.target 

下面是python脚本:

代码语言:javascript
运行
复制
#!/usr/bin/python

import time

i = 0
while True:
        print(i)        
        time.sleep(2)
        i += 1

运行systemctl start test.service我得到以下错误:

代码语言:javascript
运行
复制
Failed to start test.service: Argument list too long
See system logs and 'systemctl status test.service' for details.

此外,systemd似乎工作正常,因为我已经启动并运行了许多其他服务。我还尝试启动xinetd服务,结果出现相同的错误。

任何线索都将不胜感激。

EN

Stack Overflow用户

发布于 2020-01-27 15:13:09

这是一个known bug

试试pruning你的日志

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59881919

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档