题目描述:系统默认每过30s重启一次kylin-kms-activation.service服务,服务无法正常加载就会报错,message日记里面每过30s左右就会革新一次。
- localhost systemd[1]: Stopped run kylin_kms_daemon at boot time.
- localhost systemd[1]: kylin-kms-activation.service: Start request repeated too quickly.
- localhost systemd[1]: kylin-kms-activation.service: Failed with result 'exit-code'.
复制代码 一 系统环境
1.1 服务端/客户端系统版本
- [root@localhost ~]# nkvers
- ##############Ky1in Linux Version#################
- Release:
- Kylin Linux Advanced Server release V10 (Sword)
- Kernel:
- 4.19.90-24.4.v2101.ky10.x86_64
- Build:
- Kylin Linux Advanced Server
- release V10(SP2) /(sword)-x86_64-Build09/20210524|
- #################################################
复制代码 二 解决方法
2.1 修改kylin-kms-activation.service服务文件
[Unit]字段尾行添加两行参数:
StartLimitInterval=200
StartLimitBurst=1
具体参数表明为:允许最多1次重试,间隔200s
- 修改完毕之后的配置文件如下
- [root@localhost ~]# cat /usr/lib/systemd/system/kylin-kms-activation.service
- # kylin-activation-check
- #
- # This unit run kyli_kms_daemon
- [Unit]
- Description=run kylin_kms_daemon at boot time
- Requires=basic.target
- StartLimitIntervalSec=0
- StartLimitInterval=200
- StartLimitBurst=1
- [Service]
- Type=simple
- ExecStart=/usr/bin/kylin_kms_daemon
- Restart=always
- RestartSec=30
- [Install]
- WantedBy=multi-user.target
复制代码 2.2 重载设置,重启服务
- systemctl daemon-reload
- systemctl restart kylin-kms-activation.service
复制代码 2.3 观察日记革新环境
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |