What's the difference between /etc/init.d and /sbin/service

Kevin Kofler kevin.kofler at chello.at
Sat Apr 18 18:10:46 UTC 2009


Nathan Huang wrote:
> [mirandam at charon ~]$ su -c '/etc/init.d/NetworkManager stop'

That's the braindead Debian way and should not be used in Fedora, that's
what the "service" command is for.

It's available even for Debian:
http://packages.debian.org/sid/chkconfig

Ubuntu these days ships a /usr/bin/service (why in /usr/bin??) as part of
the following "essential" package:
http://packages.ubuntu.com/jaunty/sysvinit-utils

Fedora has been using "service" since basically forever (it was already
there in Red Hat Linux). And you should not have to specify "/sbin" as it
has been added to the PATH for all users in F10.

        Kevin Kofler




More information about the fedora-list mailing list