[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#87961: Using `run' for handling all daemons in Debian



Marc,

I'm under the impression that `run' is designed to insure that daemons
continue running and are restarted if they die, as well as being stopped
in a somewhat cleaner way than start-stop-daemon.

I agree that this is a non-trivial project, and I also agree that there is
functionality in start-stop-daemon that is not implemented in run. For the
latter reason, it is likely that much of start-stop-daemon's original code
will be retained in the modified start-stop-daemon I described.

I also agree that this should be taken to debian-policy or debian-devel
(probably -devel first); for this reason, I have CC'd this message there,
and I therefore have no objection to you closing this bug.

Regards,

Alex.

---
PGP/GPG Fingerprint:
  EFD1 AC6C 7ED5 E453 C367  AC7A B474 16E0 758D 7ED9

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM>CC/IT d- s:+ a16 C++(++++)>$ UL++++>$ P--- L++>++$ E+ W+(-) N+ o? K? w---() 
!O !M !V PS+(++)>+ PE-(--) Y+>+ PGP t+>++ !5 X-- R>++ tv(+) b+(++) DI(+) D++ 
G>+++ e--> h! !r y>+++ 
------END GEEK CODE BLOCK------

On Wed, 28 Feb 2001, Marc Haber wrote:

> On Wed, Feb 28, 2001 at 01:09:02AM -0800, Alexander Hvostov wrote:
> > I'd like to be able to automatically use `run' for handling (starting,
> > stopping, etc etc) all daemons in debian. This can be accomplished by
> > creating a start-stop-daemon replacement (ie, dpkg-divert the original one
> > out of the way) that delegates most of its functionality to run. As opposed to
> > making `run' part of debian policy, this has advantages (almost instantly
> > effective, little work, all the features of start-stop-daemon and run
> > combined) and disadvantages (/etc/init.d/* scripts cannot use some of run's
> > more sophisticated features, such as `isrunning'). Some sane defaults for run
> > (preferably administrator-tuneable) will also be needed.
> > 
> > The underlying meaning of this wishlist item, however, is this: to use `run'
> > for all daemons on the system. The benefits are hopefully obvious. I see no
> > disadvantage in using `run' for this purpose; indeed, `run' appears to be
> > designed for this.
> 
> This is a nontrivial project, and as the Maintainer für run, I would
> recommend not doing this at the moment. It requires a major policy
> discussion, and run is currently considered "broken" by the upstream.
> I don't think that we would make a favor to Debian if we replace
> start-stop-daemon with run.
> 
> However, run is really only designed to daemonize programs that
> weren't written with running as a daemon in mind. A program that
> handles its own pid file doesn't need to be invoked by run, and
> start-stop-daemon can do many things that run can't. run isn't really
> a drop-in replacement for start-stop-daemon - it was designed with a
> different job in mind. See my package console-log, where run is used
> for what it was intended.
> 
> If you really want to go on with your proposal, I think it belongs on
> debian-devel, or debian-policy.
> 
> Greetings
> Marc
> 




Reply to: