running services

A.Fadyushin at it-centre.ru A.Fadyushin at it-centre.ru
Wed Apr 26 17:21:39 UTC 2006


This way (using 'chkconfing --list | grep -i on') you can only see which
services _should_ be started when the system enters some runlevel. This
is not the same as list of services that are _actually_ running at this
time. For example, you can have the service marked to be started and it
will be shown by the chkconfig marked as 'on', however if you later
manually stop it the service will not be running, but will still be
reported by chkconfig as 'on'. The similar problem will be present for
services which are not marked for automatic startup, but later are
stated manually - those services will be running, but will not be shown
by ' chkconfing --list | grep -i on'. For services started via xinetd
this method is working more reliable because those services are started
at each request for them.

Actually, the best method to determine, which services are actually
running at this time is to use the 'ps' command and look on the list of
processes. 

Also, you can check for presence of files, which are created by the
services (usually at /var/run) during service startup and deleted during
service shutdown. However, this method may give wrong results in some
situations - e.g. when the service process crash and does not delete
files which should be deleted on service shutdown.

Alexey Fadyushin.
Brainbench MVP for Linux.
http://www.brainbench.com


> -----Original Message-----
> From: redhat-list-bounces at redhat.com [mailto:redhat-list-
> bounces at redhat.com] On Behalf Of Waleed Harbi
> Sent: Wednesday, April 26, 2006 6:51 PM
> To: General Red Hat Linux discussion list
> Subject: Re: running services
> 
> chkconfing --list | grep -i on
> 
> On 4/26/06, Muhammad Rizwan <rizwan at nixpanel.com> wrote:
> >
> > How i can get all the running services on linux system (through
> > command).
> > What is the difference between Start/Continue and Stop/Pause.
> >
> > Thnaks!
> >
> > --
> > redhat-list mailing list
> > unsubscribe
mailto:redhat-list-request at redhat.com?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> 
> 
> 
> --
> -------------------------------
> Best Regards
> Waleed Harbi
> Saudi Arabia
> 
> [root at linux ~] echo "Linux is a file"
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=subscribe
> https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list