Gentoo Archives: gentoo-dev

From: Nick Devito <nick125@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] init.d problem
Date: Tue, 04 Jul 2006 22:58:36
Message-Id: 1152053509.17024.0.camel@continental.nick125.com
In Reply to: Re: [gentoo-dev] init.d problem by Enrico Weigelt
1 One slightly hackish way would be the grab the PID, and check in ps aux
2 as to if it was running. That's one way to do what you are talking
3 about.
4
5 ~ nick
6 On Wed, 2006-07-05 at 00:43 +0200, Enrico Weigelt wrote:
7 > * Pablo Yanez Trujillo <yanezp@×××××××××××××××××××××××.de> schrieb:
8 > > what about "/etc/init.d/ntpd zap"? It deletes the file on /var/.... and set
9 > > the status of the init.d-file as not started. It is useful for such a case
10 > > :)
11 >
12 > The problem is: if the service still runs, it will attemt to start it
13 > twice. So this cannot be used in automatic processes, just for manual
14 > intervention.
15 >
16 > We should think about mechanisms to check if the service is
17 > actually running. This could also be used for frequently service
18 > checks and notification.
19 >
20 >
21 > cu
22 > --
23 > ---------------------------------------------------------------------
24 > Enrico Weigelt == metux IT service
25 >
26 > phone: +49 36207 519931 www: http://www.metux.de/
27 > fax: +49 36207 519932 email: contact@×××××.de
28 > cellphone: +49 174 7066481
29 > ---------------------------------------------------------------------
30 > -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
31 > ---------------------------------------------------------------------
32 --
33 gentoo-dev@g.o mailing list