Gentoo Archives: gentoo-dev

From: Enrico Weigelt <weigelt@×××××.de>
To: gentoo developers <gentoo-dev@l.g.o>
Subject: [gentoo-dev] /var/lib/init.d/* vs. pidfiles
Date: Mon, 18 Dec 2006 17:42:43
Message-Id: 20061218173905.GA30713@nibiru.local
Hi folks,


the bug 139243 shows an possible problem in the init.d system:
it stores the service status in /var/lib/init.d/started and
of course refuses to start an certain service if its already
there (at least if "zap" not given).

This is okay, as long as services don't die abnormally, as my
ntpd did in bug 139243 - in this case init.d thinks it's already
running and so of course refuses to start it.

The main problem is that init.d relies on its own status flag,
but does not check any pidfile and so has wrong information.

Is there already any way for telling it to use some pidfile ?
The files in /var/lib/init.d/deamons already contain pidfiles,
so this could be used.


cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------
-- 
gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] /var/lib/init.d/* vs. pidfiles Roy Marples <uberlord@g.o>