Re: starting/stopping services

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



On Fri, Nov 1, 2013 at 2:49 PM, Wes James <comptekki@xxxxxxxxx> wrote:
>
> Thanks.  But why do some commands require service service-name command
> (like sshd) where postfix works without the service command in front of it?
>

'service command option' is essentially the same as:
/etc/rc.d/init.d/command option
so it runs the standard startup/shutdown script.

'command option'
is going to run the first instance of 'command' it finds in your
execution search $PATH, and then it is up to that command to interpret
the option.  In other words there is no way to generalize about this
case.

-- 
   Les Mikesell
     lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux