Subject: [alpine-devel] Init script issue

From: Ted Trask <[email-masked]>
Date: Wed, 19 Nov 2008 13:32:47 -0800 (PST)

A recent change to ACF looks for the presence of pid files to determine if a service is running.  Unfortunately, the status is wrong for at least a few services because the init.d script fails to delete the pid file on a stop.  So far, I've seen the problem with bgpd, dansguardian, and dnsmasq.  I'm sure it's also there with others.

Ted

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Natanael Copa <[email-masked]>
Date: Thu, 20 Nov 2008 09:16:14 +0100

On Wed, 2008-11-19 at 13:32 -0800, Ted Trask wrote:
> A recent change to ACF looks for the presence of pid files to
> determine if a service is running.  Unfortunately, the status is wrong
> for at least a few services because the init.d script fails to delete
> the pid file on a stop.  So far, I've seen the problem with bgpd,
> dansguardian, and dnsmasq.  I'm sure it's also there with others.

right, and not all services uses pid at all. basicly, you cannot really
rely on the pid file.

While working on a related proj i was thinking that the init.d libs
should be taking optional parameter to check if service is running by
pidof()

-nc

---