Search
Get Started
UB
Universal Blue
•
3y ago
dnkmmr
Why are systemd unit files located in /usr/lib/systemd instead of /usr/share/systemd?
This is more of a general question but I
've always wonder why that location is chosen instead of
/usr
/share
/systemd
Universal Blue
Join
Universal Blue is a manufacturing process that focuses on community-driven desktop and server operating systems.
26,230
Members
View on Discord
Was this page helpful?
Yes
No
A
Akzel
•
10/2/23, 1:50 PM
systemd reads from
/usr
/lib
/systemd
, not
/usr
/share
/systemd
. the unit files wouldn
't be recognized if they were in the latter
A
Akzel
•
10/2/23, 1:54 PM
see here
, too
:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
E
EyeCantCU
•
10/2/23, 4:02 PM
Systemd services and timers are providing more of a library than they are shared program files so I
'd imagine that
's why
Not to mention
, systemd itself provides a library of programs and utilities
E
EyeCantCU
Systemd services and timers are providing more of a library than they are shared...
S
shitposter
•
10/3/23, 4:08 AM
I mean
, generally architecture specific stuff goes in lib and architecture independent stuff goes in share
.
But systemd gonna systemd
E
EyeCantCU
•
10/3/23, 4:20 AM
/usr
/lib
(in the file hierchy standard
) permits executables be ran indirectly whereas
/usr
/share does not
. While I am not 100
% certain
, that could be why they opted to use it over the former
S
shitposter
I mean, generally architecture specific stuff goes in lib and architecture indep...
D
dnkmmr
OP
•
10/3/23, 6:27 PM
sometimes there are non architecture specific stuff in
/lib if they are executables ran indirectly