Gentoo Archives: gentoo-dev

From: Gontran Zepeda <gontran@×××××××.net>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] how can I easily find out which *inetd* system gentoo is using ?
Date: Sun, 08 Dec 2002 17:32:07
Message-Id: 20021208173112.GA4665@rythm.gontran.net
In Reply to: [gentoo-dev] how can I easily find out which *inetd* system gentoo is using ? by Stephan Hermann
1 # On 2002-12-08 at 13:17:33 +0100,
2 # Stephan Hermann (sh@×××××××××.de) wrote:
3 >
4 > how can I easily find out which *inetd* system gentoo is using ?
5 >
6 > a "ps -elf|grep inetd " during an emerge is not nice.
7
8 May I suggest using pgrep? Part of sys-apps/procps, so in the base system.
9
10 pgrep inetd &> /dev/null
11 # check exit status $?
12 pgrep xinetd &> /dev/null
13 # check ...
14
15 This is only applicable if the internet daemons are running of course.
16
17 hth,
18 Gontran
19
20 --
21 gentoo-dev@g.o mailing list