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!
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!
-Walter H. Schulze III
BA: M.I.S., MA: I.T., CCDA, CCNA: R&S, Linux+ / LPIC-1
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.
Cordially,
Ronnie Wong
Edutainer Manager, ITProTV
*if the post above has answered the question, please mark as solved.
**All "answers" and responses are offered "as is" and my opinion. There is no implied service, support, or guarantee by ITProTV.