Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] systemctl can't see unit files /lib/systemd/system
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
vyedmic
n00b
n00b


Joined: 02 Dec 2010
Posts: 40

PostPosted: Fri Jun 21, 2024 9:24 pm    Post subject: [SOLVED] systemctl can't see unit files /lib/systemd/system Reply with quote

Hello,

After recent upgrade to sys-apps/systemd-255.7, the unit files in /lib/systemd/system are not visible using systemctl

Code:
# systemctl status sshd
Unit sshd.service could not be found.


I don't know the intricacies of systemd that well, can you please point me in the right direction? Thanks


Last edited by vyedmic on Sat Jun 22, 2024 10:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1676
Location: South America

PostPosted: Sat Jun 22, 2024 12:42 am    Post subject: Reply with quote

Not sure if this is your problem, but recent versions of systemd (I don't remember the oldest one that started doing this) no longer support nonmerged /usr filesystems. On a merged /usr filesystem, /lib is a symbolic link to /usr/lib, so there's no longer a real /lib/systemd directory, and all unit files would be in /usr/lib/systemd.

Are you still on a nonmerged /usr filesystem?
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
vyedmic
n00b
n00b


Joined: 02 Dec 2010
Posts: 40

PostPosted: Sat Jun 22, 2024 10:03 pm    Post subject: Reply with quote

GDH-gentoo wrote:
Not sure if this is your problem, but recent versions of systemd (I don't remember the oldest one that started doing this) no longer support nonmerged /usr filesystems. On a merged /usr filesystem, /lib is a symbolic link to /usr/lib, so there's no longer a real /lib/systemd directory, and all unit files would be in /usr/lib/systemd.

Are you still on a nonmerged /usr filesystem?


That was it, thank you! I had merge-usr script already, must have forgotten to run it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum