From 238f9c5eed8df5276207843bfb0df4ed254e2d1f Mon Sep 17 00:00:00 2001 From: Cryo Date: Sat, 7 Sep 2024 13:49:34 +0800 Subject: [PATCH] systemctl: add Chinese translation (#13619) --- pages.zh/linux/systemctl.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages.zh/linux/systemctl.md diff --git a/pages.zh/linux/systemctl.md b/pages.zh/linux/systemctl.md new file mode 100644 index 000000000..0b885b696 --- /dev/null +++ b/pages.zh/linux/systemctl.md @@ -0,0 +1,36 @@ +# systemctl + +> 控制 systemd 系统和服务管理器。 +> 更多信息:. + +- 显示所有正在运行的服务: + +`systemctl status` + +- 列出失败的单元: + +`systemctl --failed` + +- 启动/停止/重启/重新加载/显示服务的状态: + +`systemctl {{start|stop|restart|reload|status}} {{单元}}` + +- 启用/禁用开机时启动的单元: + +`systemctl {{enable/disable}} {{单元}}` + +- 重新加载 systemd,扫描新的或更改的单元: + +`systemctl daemon-reload` + +- 检查单元是否激活/启用/失败: + +`systemctl {{is-active|is-enabled|is-failed}} {{单元}}` + +- 按运行/失败状态过滤列出所有服务/套接字/自动挂载单元: + +`systemctl list-units --type={{service|socket|automount}} --state={{failed|running}}` + +- 显示单元文件的内容和绝对路径: + +`systemctl cat {{单元}}`