question. what are the pros/cons to using systemctl vs. the scripts in /etc/init.d/ ?
Thank you. I love this course and the previous one "Becoming a Linux Power User". Great stuff!
Becoming a Linux System Admin
question. what are the pros/cons to using systemctl vs. the scripts in /etc/init.d/ ?
Thank you. I love this course and the previous one "Becoming a Linux Power User". Great stuff!
From Don:
The short answer is: init.d = old way, systemctl = new way.
The not-so-long answer is that the init.d scripts are the old SysV Init method for starting services. Most modern Linux distributions (Redhat, Fedora, Debian, Ubuntu, etc) have moved away from SysV Init style service management over to systemd. You manage services in systemd with the systemctl command. There aren't a lot of pros/cons to cover here, but as a rule, you should be using systemd/systemctl whenever possible to avoid issues if support for init.d is ever removed.