RE: running services

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

 



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@xxxxxxxxxx [mailto:redhat-list-
> bounces@xxxxxxxxxx] 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@xxxxxxxxxxxx> 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@xxxxxxxxxx?subject=unsubscribe
> > https://www.redhat.com/mailman/listinfo/redhat-list
> >
> 
> 
> 
> --
> -------------------------------
> Best Regards
> Waleed Harbi
> Saudi Arabia
> 
> [root@linux ~] echo "Linux is a file"
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=subscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux