【问题标题】:Systemctl: Argument list too longSystemctl:参数列表太长
【发布时间】:2020-05-09 22:09:55
【问题描述】:

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

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 脚本。 这是服务文件:

[Unit]
Description=Example systemd service.

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

[Install]
WantedBy=multi-user.target 

这是python 脚本:

#!/usr/bin/python

import time

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

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

Failed to start test.service: Argument list too long
See system logs and 'systemctl status test.service' for details.

此外,systemd 似乎工作正常,因为我还有许多其他服务正在运行。还尝试启动 xinetd 服务,导致同样的错误。

任何线索将不胜感激。

【问题讨论】:

    标签: centos systemd check-mk xinetd


    【解决方案1】:

    这是known bug

    试试pruning你的日记

    【讨论】:

      猜你喜欢
      • 2019-06-03
      • 2017-11-30
      • 2014-05-21
      • 2015-04-04
      • 2021-10-26
      • 2014-04-18
      • 2021-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多