Re: starting/stopping services

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



On 2013-11-01, Wes James <comptekki@xxxxxxxxx> wrote:
>
> But why can you do
>
> postfix stop/start
>
> but not
>
> sshd stop/start.

It is just the way Postfix and OpenSSH were written.  The Postfix
developers wanted one top-level executable to start their daemons
(partly because there are more than one for Postfix).  The OpenSSH
developers did not (perhaps partly because there is only one real sshd
process?).

> With sshd you need to use service sshd stop/start.  It
> seems inconsistent.

It is.  As another poster commented, welcome to linux!  Sometimes, if
you read through the init script in /etc/init.d/, you can see how the
actual service is called.  That won't help with the inconsistency, but
it might help in not having to remember which commands support the
"start" argument and which do not.

--keith

-- 
kkeller@xxxxxxxxxxxxxxxxxxxxxxxxxx


_______________________________________________
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