chiark / gitweb /
systemctl,core: allow nuking of symlinks to removed units
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Jun 2013 17:55:13 +0000 (13:55 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 3 Jun 2013 17:55:17 +0000 (13:55 -0400)
commit02b9e969a6f512d2312e7028ce5c48c84ad87d06
treea35a07c17852a7edb5c731b716e5ef3123964905
parent5b46fc6c609cab439eb447c7528d5d7096aa3d2f
systemctl,core: allow nuking of symlinks to removed units

Before, one the unit file was deleted, install_context_for_removal()
would refuse to look for symlinks. But we can remove dangling symlinks
anyway.

In principle, package installation/deinstallation scripts should do
that before the unit is uninstalled, but they don't always do. Also,
a user might have added additional symlinks manually.

https://bugs.freedesktop.org/show_bug.cgi?id=62395
src/shared/install.c