一、守护进程特征
1.1 引例
使用ps -axj命令显示系统进程中所有无控制终端进程的信息。
ubuntu@VM-0-13-ubuntu:~$ ps -axj
PPID PID PGID SID TTY UID COMMAND
0 1 1 1 ? 0 /sbin/init
0 2 0 0 ? 0 [kthreadd]
2 3 0 0 ? 0 [ksoftirqd/0]
2 5 0 0 ? 0 [kworker/0:0H]
2 7 0 0 ? 0 [rcu_sched]
2 382 0 0 ? 0 [ib_cm]
2 383 0 0 ? 0 [kauditd]
2 388 0 0 ? 0 [iw_cm_wq]
2 393 0 0 ? 0 [rdma_cm]
1 403 403 403 ? 0 /sbin/lvmetad -f
1 420 420 420 ? 0 /lib/systemd/systemd-udevd
1 894 894 894 ? 0 /sbin/dhclient -1 -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -I -df /var/lib/dhcp/dhclient6.eth0.leases eth0
1 984 984 984 ? 107 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activati