登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
9月20日,Gitee × 模力方舟来成都了!聚焦 AI 应用在开发范式、算力架构、交互设计、硬件选型等跨场景创新实践,点击立即报名~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
15
Star
11
Fork
109
src-openEuler
/
systemd
代码
Issues
13
Pull Requests
5
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
同时对服务执行start、daemon-reload、try-restart会残留nop类型job
已完成
#I4SZV4
缺陷
likechiguoguo
创建于
2022-02-09 15:49
【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式) 【环境信息】  【问题复现步骤】 执行如下脚本可复现,若脚本卡住,可执行systemctl list-jobs查看已存在nop 状态的服务,这会导致sytemctl动作卡住 必现 ``` cat > /etc/systemd/system/test1.service << EOF [Unit] Description=whorweTEST1 [Service] Type=oneshot ExecStart=/bin/bash /etc/systemd/system/test1.sh [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test1.sh << EOF systemctl daemon-reload & systemctl try-restart test3.service EOF chmod +x /etc/systemd/system/test1.sh cat > /etc/systemd/system/test2.service << EOF [Unit] Description=whorweTEST2 After=test1.service [Service] ExecStart=/usr/bin/true [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test3.service << EOF [Unit] Description=whorweTEST3 After=test2.service [Service] ExecStart=/usr/bin/true [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test.target << EOF [Unit] Description=whorweTEST_TARGET EOF systemctl daemon-reload systemctl enable test1 test2 test3 cp /etc/systemd/system.conf /etc/systemd/system.conf.back sed -i 's/#DefaultStartLimitBurst=5/DefaultStartLimitBurst=500/g' /etc/systemd/system.conf systemctl daemon-reload for i in `seq 1 100`; do systemctl stop test1 test2 test3 test.target; systemctl restart test.target; if [ $(($i%10)) = "0" ]; then echo $i; fi done mv /etc/systemd/system.conf.back /etc/systemd/system.conf rm -rf /etc/systemd/system/test* systemctl daemon-reload ``` 【预期结果】 nop 状态进程会被清理,不会影响systemctl动作 【实际结果】 卡住  nop 状态的任务一直存在,未被清理  【附件信息】
【标题描述】能够简要描述问题:说明什么场景下,做了什么操作,出现什么问题(尽量使用正向表达方式) 【环境信息】  【问题复现步骤】 执行如下脚本可复现,若脚本卡住,可执行systemctl list-jobs查看已存在nop 状态的服务,这会导致sytemctl动作卡住 必现 ``` cat > /etc/systemd/system/test1.service << EOF [Unit] Description=whorweTEST1 [Service] Type=oneshot ExecStart=/bin/bash /etc/systemd/system/test1.sh [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test1.sh << EOF systemctl daemon-reload & systemctl try-restart test3.service EOF chmod +x /etc/systemd/system/test1.sh cat > /etc/systemd/system/test2.service << EOF [Unit] Description=whorweTEST2 After=test1.service [Service] ExecStart=/usr/bin/true [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test3.service << EOF [Unit] Description=whorweTEST3 After=test2.service [Service] ExecStart=/usr/bin/true [Install] WantedBy=test.target EOF cat > /etc/systemd/system/test.target << EOF [Unit] Description=whorweTEST_TARGET EOF systemctl daemon-reload systemctl enable test1 test2 test3 cp /etc/systemd/system.conf /etc/systemd/system.conf.back sed -i 's/#DefaultStartLimitBurst=5/DefaultStartLimitBurst=500/g' /etc/systemd/system.conf systemctl daemon-reload for i in `seq 1 100`; do systemctl stop test1 test2 test3 test.target; systemctl restart test.target; if [ $(($i%10)) = "0" ]; then echo $i; fi done mv /etc/systemd/system.conf.back /etc/systemd/system.conf rm -rf /etc/systemd/system/test* systemctl daemon-reload ``` 【预期结果】 nop 状态进程会被清理,不会影响systemctl动作 【实际结果】 卡住  nop 状态的任务一直存在,未被清理  【附件信息】
评论 (
1
)
登录
后才可以发表评论
状态
已完成
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
hexiaowen
overweight
负责人
协作者
+负责人
+协作者
标签
sig/Base-service
未设置
项目
未立项任务
未立项任务
里程碑
openEuler-22.03-LTS-round-1
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (34)
标签 (44)
master
sync-pr927-openEuler-24.03-LTS-Next-to-openEuler-24.03-LTS-SP2
sync-pr928-master-to-openEuler-25.09
sync-pr927-openEuler-24.03-LTS-Next-to-openEuler-24.03-LTS-SP1
sync-pr927-openEuler-24.03-LTS-Next-to-openEuler-24.03-LTS
openEuler-24.03-LTS-Next
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2
openEuler-25.09
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-Next
openEuler-25.03
openEuler-24.09
sync-pr831-openEuler-24.03-LTS-to-openEuler-24.03-LTS
openEuler-22.03-LTS-SP1
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-22.03-LTS-LoongArch
openEuler-20.03-LTS-SP2
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.03-LTS-Next
openEuler-21.09
openEuler-20.09
openEuler1.0-base
openEuler1.0
openEuler-22.03-LTS-SP4-update-20250808
openEuler-20.03-LTS-SP4-update-20250801
openEuler-24.03-LTS-SP2-update-20250711
openEuler-22.03-LTS-SP3-update-20250704
openEuler-22.03-LTS-SP4-update-20250704
openEuler-24.03-LTS-update-20250704
openEuler-24.03-LTS-SP1-update-20250704
openEuler-24.03-LTS-SP2-release
openEuler-24.03-LTS-update-20250530
openEuler-24.03-LTS-SP1-update-20250530
openEuler-25.03-release
openEuler-22.03-LTS-SP3-update-20250307
openEuler-22.03-LTS-SP4-update-20250221
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241227
openEuler-22.03-LTS-SP1-update-20241227
openEuler-22.03-LTS-SP3-update-20241227
openEuler-22.03-LTS-SP4-update-20241227
openEuler-22.03-LTS-SP4-update-20241213
openEuler-22.03-LTS-SP3-update-20241213
openEuler-22.03-LTS-SP1-update-20241213
openEuler-22.03-LTS-SP1-update-20241206
openEuler-20.03-LTS-SP4-update-20241206
openEuler-22.03-LTS-SP1-update-20241025
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/systemd.git
git@gitee.com:src-openeuler/systemd.git
src-openeuler
systemd
systemd
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册