What is the difference between service and systemctl?

service is an “high-level” command used for starting and stopping services in different unixes and linuxes. Depending on the “lower-level” service manager, service redirects on different binaries.

For example, on CentOS 7 it redirects to systemctl, while on CentOS 6 it directly calls the relative /etc/init.d script. On the other hand, in older Ubuntu releases it redirects to upstart

service is adequate for basic service management, while directly calling systemctl give greater control options.

Leave a Comment