[CentOS] starting/stopping services

Fri Nov 1 21:17:59 UTC 2013
John R Pierce <pierce at hogranch.com>

On 11/1/2013 1:56 PM, Keith Keller wrote:
>> >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.

I'd go so far as to say you should ALWAYS use the service (or 
/etc/rc.d/init.d/$SERVICENAME) commands to do start/stop/reload/etc...  
the service script might be setting up environment variables, and/or 
running the commands with a specific set of parameters, which you might 
miss starting it manually

john r pierce                                      37N 122W
somewhere on the middle of the left coast