Bug#830208: dh_installinit tries to do dh_systemd_start's job
Felipe Sateler
fsateler at debian.org
Thu Dec 15 01:31:55 GMT 2016
On 19 July 2016 at 13:28, Niels Thykier <niels at thykier.net> wrote:
> 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.
I think that installinit should stop looking at .service and .tmpfiles.
Making dh_installinit ignore .service and .tmpfiles is a compat break
so I think this should only be enabled for compat >= 11. I think
something like the attached patch should do.
--
Saludos,
Felipe Sateler
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-installinit-do-not-process-systemd-files-from-compat.patch
Type: text/x-patch
Size: 5960 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20161214/4d4940ab/attachment-0001.bin>
More information about the Pkg-systemd-maintainers
mailing list