Bug#887456: init-system-helpers: deb-systemd-helper does not honor the same package-relevant unit paths as systemd

Felipe Sateler fsateler at debian.org
Thu Jan 18 15:47:57 GMT 2018


On Wed, Jan 17, 2018 at 9:44 PM, Michael Biebl <biebl at debian.org> wrote:
> Am 17.01.2018 um 11:35 schrieb Guillem Jover:
>> --- a/script/deb-systemd-helper
>> +++ b/script/deb-systemd-helper
>> @@ -122,6 +122,8 @@ sub find_unit {
>>          $service_path = "/etc/systemd/system/$scriptname";
>>      } elsif (-f "/lib/systemd/system/$scriptname") {
>>          $service_path = "/lib/systemd/system/$scriptname";
>> +    } elsif (-f "/usr/lib/systemd/system/$scriptname") {
>> +        $service_path = "/usr/lib/systemd/system/$scriptname";
>>      }
>>      return $service_path;
>>  }
>
> Looks ok to me on a cursory glance.

LGTM too.

> With merged-usr in mind, I wonder though if we should prefer
> /usr/lib/systemd over /lib/systemd. The latter will be a symlink in such
> a case and by prefering /usr/lib/systemd we'd avoid one indirection.
>
> Felipe, wdyt?

I'm indifferent. I don't think there is much impact, but we still
don't enable usrmerge by default...

-- 

Saludos,
Felipe Sateler




More information about the Pkg-systemd-maintainers mailing list