On Nov 1, 2013 2:02 PM, "Wes James" <comptekki@xxxxxxxxx> wrote: > > On Fri, Nov 1, 2013 at 1:56 PM, Reindl Harald <h.reindl@xxxxxxxxxxxxx >wrote: > > > > > > > Am 01.11.2013 20:49, schrieb Wes James: > > > > > > > <snip> > > > > > > > > Thanks. But why do some commands require service service-name command > > > (like sshd) where postfix works without the service command in front of > > it? > > > > you still do not realize the difference between start/stop/restart > > and enable/disable a service, they *all* behave identically > > > > some are enabled by default after install, some are not > > __________________________________ > > > > service *whatever* start > > service *whatever* restart > > service *whatever* stop > > > > chkconfig *whatever* on > > chkconfig *whatever* off > > __________________________________ > > > > start/stop/restart acts *now* > > on/off acts at boot > > > > please read some basic documentations! > > > > http://www.linuxmail.info/how-to-start-stop-services-centos-6/ > > > > https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-services-chkconfig.html > > > > > I do understand that. > > But why can you do > > postfix stop/start > > but not > > sshd stop/start. With sshd you need to use service sshd stop/start. It > seems inconsistent. > > -wes > _______________________________________________ Services are also executables. The name of the service and the name of the executable often but not always match. Utilities like `service` and `chkconfig` work with the init system to manage services. You can also invoke the executables by hand from the command line, but it would get tedious. The initscripts control the arguments an executable is given at start. `service` is also an executable. It takes different arguments from other executables, primarily the name of the service to act on and the action to be taken. You don't expect different utilities to have identical command syntax, because they do different work. https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/part-Infrastructure_Services.htmlexplains this better than I have. --pete _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos