Bug#830208: dh_installinit tries to do dh_systemd_start's job

Niels Thykier niels at thykier.net
Tue Jul 19 18:28:00 BST 2016


Hi Peter,

Thanks for the report - at first glance it sounds like #830208 (Cc'ed
accordingly).

Peter's message quoted in full (for those not subscribed to
debhelper-devel):

> Hi,
> 
> Now that dh_systemd_start and dh_systemd_enable are part of debhelper
> proper, there's a bit of duplication of work between dh_installinit and
> dh_systemd_start.  Now don't get me wrong: I do agree that installing
> and configuring systemd service files correctly is a Good Thing(tm);
> it's just that I'm afraid that there are some more rough edges to
> polish.
> 
> So far I've only seen the problem in a package that provides both
> a systemd service file and a SysV init script.  If the service file is
> named debian/package.service, dh_systemd_start and dh_systemd_enable
> will pick it up and process it just fine... but then dh_installinit will
> *also* pick it up.  It's invoked because debian/package.init exists, but
> it tries to process systemd and upstart files, too, if it finds them,
> so it tries to do once again what dh_systemd_start just did, and, well,
> it even gets it subtly wrong :)
> 
> So, hm, I'm not sure what the proper resolution would be.  Would it be
> possible for dh_installinit to figure out that the systemd sequence is
> enabled?  If so, then this might be the best solution - in compat 10
> with the systemd sequence enabled, ignore any systemd service files.
> 
> Again, don't get me wrong, I *am* very happy with the way debhelper
> development is progressing; thanks a lot for that!
> 
> G'luck,
> Peter
> 
> [...]

Michael/Martin: What is your take - should we just disable the service
handling in dh_installinit for compat 10 or newer?  AFAICT, it should
"just work(tm)" and now would be the time to do it if we want it in
compat 10.

Thanks,
~Niels







More information about the Pkg-systemd-maintainers mailing list