You are not logged in.

#1 2015-05-08 10:26:18

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

[Solved] Accidental deletion of systemd files in /etc/systemd/system

Yes, I know, I know.  I've said all that to myself already sad

Ok, so now to the solution.  System boots up to cli login prompt fine, but doesn't make an attempt to load KDE.  /etc/systemd/system is empty of files but does still have it's subdirectories intact. What files have I lost and what is the easiest way to replace them please?

Hopeful regards ...

Last edited by chsims1 (2015-05-08 11:04:38)

Offline

#2 2015-05-08 10:46:06

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] Accidental deletion of systemd files in /etc/systemd/system

You have lost no files, that directory contains only symlinks. The question is, which symlinks... I think it'd simply be a matter of re-enabling services that you have now disabled. Eg. look at `systemctl list-units` and enable the ones you want

Offline

#3 2015-05-08 11:04:06

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

Re: [Solved] Accidental deletion of systemd files in /etc/systemd/system

Thank you very much Spider.007... that has got me pointed in the right direction.  For the sake of anyone else searching, "systemctl list-unit-files" lists all installed services and details which are disabled, static or running.

I have enabled the kdm service (systemctl enable kdm.service) which has got me back into KDE, and I guess I will find out over the next few days which other services I am missing (everything seems fine at the moment).

Thanks again.

Offline

#4 2015-05-08 11:06:07

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Accidental deletion of systemd files in /etc/systemd/system

Spider.007 wrote:

You have lost no files, that directory contains only symlinks.

Not necessarily.

If you have created any custom units or drop-in *.conf files in that directory, you will need to recreate them.

Offline

#5 2015-05-08 11:12:49

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] Accidental deletion of systemd files in /etc/systemd/system

tomk wrote:
Spider.007 wrote:

You have lost no files, that directory contains only symlinks.

Not necessarily.

If you have created any custom units or drop-in *.conf files in that directory, you will need to recreate them.

Ah, you're right, I forgot about those.

@ts; you also might want to enable these, they get enabled on install but you're probably missing them now:

systemctl enable getty@tty1.service remote-fs.target

Last edited by Spider.007 (2015-05-08 11:18:06)

Offline

#6 2015-05-08 12:56:34

chsims1
Member
From: Holderness, UK
Registered: 2008-11-25
Posts: 83

Re: [Solved] Accidental deletion of systemd files in /etc/systemd/system

Yep, I've replaced the custom files ... that was what caused the original problem.

Offline

Board footer

Powered by FluxBB