To stop/start a service on the command line you can use the service
command. I'll use the sendmail service to illustrate.

service sendmail stop
service sendmail start
or
service sendmail restart

Voila!

As for what services are running, try the ps command:

ps -aux

Or use with grep to find a running service:

ps -ef | grep sendmail

Or just run top from the command line. It's much more versatile.

<<JAV>>



On Fri, 2003-03-07 at 13:41, DuSTiN KRySaK wrote:
> Hi there... 
> 
> How does one restart/stop/start a service from the command line?
> 
> I have a desktop reference book of commands, and can't seem to find it in
> there.
> 
> Also - how would one see the services available on the command line and
> their current status (start/stopped)?
> 
> Thanks!
> 
> Dustin
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to