What's the difference between "Service" and "/etc/init.d/"?
Posted
by
Marco Ceppi
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Marco Ceppi
Published on 2010-08-12T19:12:51Z
Indexed on
2012/07/07
21:23 UTC
Read the original article
Hit count: 317
I've been managing server installations both on and off Ubuntu flavor for some time - I've become quite adjusted to /etc/init.d/ for restarting servcies. Now I get this message:
root@tatooine:~# /etc/init.d/mysql status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql status
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status mysql
mysql start/running, process 14048
This seems to have been brought about in the latest LTS of Ubuntu - why? What's so bad about /etc/init.d/ and what/is there a difference between service and /etc/init.d/?
© Ask Ubuntu or respective owner