What's the difference between /etc/init.d and /sbin/service
Sam Varshavchik
mrsam at courier-mta.com
Sat Apr 18 19:35:25 UTC 2009
Nathan Huang writes:
> Hi guys
> I face a problem, What 's the difference between these two commands?
>
> [mirandam at charon ~]$ su -c '/etc/init.d/NetworkManager stop'
>
> [mirandam at charon ~]$ |su -c '/sbin/service NetworkManager start
The service command sets up a few things in the environment. In addition, on
systems that use SELinux, it sets up the right SELinux context.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20090418/69f2d65e/attachment-0001.sig>
More information about the fedora-list
mailing list