~alpine/devel

1

[alpine-devel] Init script issue

Details
Message ID
<851834.89428.qm@web50209.mail.re2.yahoo.com>
Sender timestamp
1227130367
DKIM signature
missing
Download raw message
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:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Details
Message ID
<1227168974.8518.59.camel@nc>
In-Reply-To
<851834.89428.qm@web50209.mail.re2.yahoo.com> (view parent)
Sender timestamp
1227168974
DKIM signature
missing
Download raw message
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



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)