1
Systemctl状态的输出中Process:和Main PID:有什么区别?
服务单元上的输出中的Process:和Main PID:行之间有什么区别systemctl status?流程编号代表什么? 例如: 在输出中,systemctl status sshd我们看到一行Process:上面有一行Main PID:。它具有与该Main PID:行不同的进程号。这是RHEL管理指南中的一个: #systemctl status sshd sshd.service-OpenSSH服务器守护程序 已加载:已加载(/usr/lib/systemd/system/sshd.service;已禁用) 活动:自星期一2014-09-01 09:35:17 EST起活动(运行);2秒前 进程:6191 ExecStartPre = / usr / sbin / sshd-keygen(代码=已退出,status = 0 /成功) 主PID:6194(sshd) CGroup:/system.slice/sshd.service └─6194/ usr / sbin / sshd -D 我试图了解该进程号是什么。
10
systemd