service
may run scripts from either /etc/init or /etc/init.d (upstart or System V)service
runs scripts in a predictable environment.Since upstart has been deprecated and most systems now use systemd
, the service
command runs System V scripts as a legacy option