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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan Huang writes:

Hi guys
I face a problem, What 's the difference between these two commands?

[mirandam@charon ~]$ su -c '/etc/init.d/NetworkManager stop'

[mirandam@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.


Attachment: pgpbJjzDnNr5C.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux