ps -p 1 -o comm=
You will either see init (SysVinit) or systemd.
| Systemd command | SysVinit command |
|---|---|
| systemctl start service_name | service service_name start |
| systemctl stop service_name | service service_name stop |
| systemctl restart service_name | service service_name restart |
| systemctl status service_name | service service_name status |
| systemctl enable service_name | chkconfig service_name on |
| systemctl disable service_name | chkconfig service_name off |
No comments:
Post a Comment