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

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



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: pgp1O9zj6EUd5.pgp
Description: PGP signature


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