Bug#786970: [dh-systemd] dh-systemd leaves dangling symlinks after dpkg purge and remove

Michael Biebl biebl at debian.org
Wed May 27 15:21:02 BST 2015


Control: tags -1 moreinfo

Am 27.05.2015 um 11:49 schrieb Wolfgang Silbermayr:

> When installing the package, then purging and removing it using dpkg, a
> dangling symlink is left on the system:
> 
> /etc/systemd/system/multi-user.target.wants/<package>.service ->
> /lib/systemd/system/<package>.service
> 
> A snippet like this should basically do the work (similar to what can be
> found in lxdm 0.5.1-1 postrm in current unstable):
> 
>> # Test if /etc/systemd/system/<package>.service is broken now
>> SERVICE_FILE=/etc/systemd/system/<service>.service
>> if [ -L $SERVICE_FILE ] && [ ! -e $SERVICE_FILE ]; then
>>   echo "WARN: clearing dangling symlink $SERVICE_FILE" >&2
>>   rm -f $SERVICE_FILE
>> fi


Is it possible, that you/piuparts removed the init-system-helpers
package, before you purged your test package?

The cleanup routine relies on init-system-helpers to be around.
Since init-system-helpers is quasi-essential, it will never be uninstall
on a real system, so this shouldn't be a problem in practice.

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150527/da97fbeb/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list