[chiark.chat] Re: RFH: sysvinit etc. in Debian
Mark Hindley
mark at hindley.org.uk
Fri Nov 9 09:46:55 GMT 2018
On Thu, Nov 08, 2018 at 11:01:17PM +0100, Andreas Messer wrote:
> On Thu, Nov 08, 2018 at 08:01:12PM +0000, Mark Hindley wrote:
> > On Thu, Nov 08, 2018 at 08:37:15PM +0100, Lorenz wrote:
> > > Hi Ian, Mark
> > > I'm switching to your packaging and i've spotted few issues, althought
> > > i'm a bit in a rush so i may be wrong (forgive me in that case)
> > > * you are starting elogind twice each boot, first with dbus and than
> > > with a sysv script, you're not catching this with 'log_end_msg' because
> > > the second instance of elogind print a message but exit 0. This
> > > is not a problem for sysv but it is with runit, it will keep restarting
> > > elogind forever (twice per second)
> > > For me, having a 'Exec=/sbin/false' in
> > > /usr/share/dbus-1/system-service/org.freedesktop.login1.service is
> > > working.
> >
> > Yes, I have just noticed that this afternoon too.
> >
> > Andreas, was there a reason you wrote an init script rather than relying on dbus
> > activation?
>
> Honestly, I didn't even know that there was dbus activation for
> elogind. However, that shouldn't lead to starting the daemon twice. I
> mean, dbus should only start the daemon if the dbus service is not yet
> registered. And when started through init scripts, it would expect it to
> be already registered.
Yes, I thought that too. I wonder why runit is not allowing the running daemon
to be detected?
Mark
More information about the Debian-init-diversity
mailing list