[CentOS] starting/stopping services

Fri Nov 1 20:56:11 UTC 2013
Keith Keller <kkeller at wombat.san-francisco.ca.us>

On 2013-11-01, Wes James <comptekki at gmail.com> 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

> 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.


kkeller at wombat.san-francisco.ca.us