Re: starting/stopping services

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



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

_______________________________________________
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