Bug#963000: systemd-analyze unit-paths erroneously reports /usr/lib/systemd/system/
Michael Biebl
biebl at debian.org
Wed Jun 17 21:48:42 BST 2020
Hi Thijs
Am 17.06.20 um 13:44 schrieb Thijs Kinkhorst:
> Package: systemd
> Version: 245.6-1
> Severity: normal
>
> Hi,
>
> This is the output of 'systemd-analyze unit-paths' on my system:
>
> # systemd-analyze unit-paths
> /etc/systemd/system.control
> /run/systemd/system.control
> /run/systemd/transient
> /run/systemd/generator.early
> /etc/systemd/system
> /etc/systemd/system.attached
> /run/systemd/system
> /run/systemd/system.attached
> /run/systemd/generator
> /usr/local/lib/systemd/system
> /lib/systemd/system
> /usr/lib/systemd/system
> /run/systemd/generator.late
>
> Howeverm it seems /usr/lib/systemd/system, despite being in the list, is
> not actually searched. It was confirmed by other documentation that in
> Debian this is indeed the case.
Are you sure?
root at pluto:/usr/lib/systemd/system# cat
/usr/lib/systemd/system/test.service
[Unit]
Description=Test
[Service]
RemainAfterExit=yes
ExecStart=/bin/true
root at pluto:/usr/lib/systemd/system# systemctl status test.service
● test.service - Test
Loaded: loaded (/usr/lib/systemd/system/test.service; static;
vendor preset: enabled)
Active: active (exited) since Wed 2020-06-17 22:41:42 CEST; 25s ago
Main PID: 18740 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 19005)
Memory: 0B
CPU: 0
CGroup: /system.slice/test.service
Jun 17 22:41:42 pluto systemd[1]: Started Test.
Systemd itself does indeed search /usr/lib/systemd/system . Our
internal/Debian tooling though
(dh_installsystemd/invoke-rc.d/service/...) currently only handles files
from /lib/systemd (mostly for historical reasons where a /usr on a
separate partition mounted during late boot was still supported).
So, theoretically, you can install unit files in /usr/lib/systemd/system
and systemd will process them. What you don't get is full Debian
integration.
Regards,
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200617/9a25ad0c/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list