Systemctl:参数列表太长

问题描述 投票:0回答:1

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

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个回答
0
投票

这是known bug

尝试pruning您的日记

© www.soinside.com 2019 - 2024. All rights reserved.