[Pkg-systemd-maintainers] Bug#739090: Bug#739090: Bug#739090: Don't mask services on remove if local modification exists

Michael Stapelberg stapelberg at debian.org
Tue Feb 18 19:55:34 GMT 2014


control: tags -1 + pending
control: reassign -1 init-system-helpers 1.16

Hi Michael,

Michael Biebl <biebl at debian.org> writes:

> Am 15.02.2014 20:25, schrieb Michael Biebl:
>> Package: dh-systemd
>> Version: 1.15
>> Severity: normal
>> 
>> (This issue was reported on IRC by uau)
>> 
>> We generate mainterscripts code to mask services when a package is removed
>> (and unmask them again on re-install).
>> 
>> The reasoning for this behaviour is, that on remove the native service
>> files are removed but the SysV init scripts (which typically are
>> conffiles) aren't. Conffiles are only removed on purge.
>> While typically SysV init scripts become no-ops if their corresponding
>> binary has been removed, having the services show up in systemctl
>> status, is confusing.
>> 
>> When masking a service which should take into account, that the
>> administrator has made local modification by copying the file to
>> /etc/systemd/system.
>> 
>> In this case we shouldn't try to overwrite this file with a /dev/null
>> symlink.
>> On re-install, we also need to make sure when running the unmask, to
>> take into account that /etc/systemd/system/<unit> is a file (custom
>> modification) and not remove it in that case.
>
> I think we should be able to handle this within
> deb-systemd-helper without having to generate (new) maintainer scripts code.
>
> Michael, if you agree, let's re-assign the bug to i-s-h.
I agree.

This should be adressed with:
http://anonscm.debian.org/gitweb/?p=collab-maint/init-system-helpers.git;a=commitdiff;h=cbfce36a16095b9f8155ecfb620e1d6194dcc7e7

Waiting for confirmation from uau before uploading 1.17.

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list