You are not logged in.

#1 2016-09-15 08:17:07

positronik
Member
Registered: 2016-02-08
Posts: 95

systemctl complains about missing unit when using autocompletion

Hi,
recently systemctl started to complain about missing units when using autocompletion with tab key.

Here's an example:

sudo systemctl start reUnit display-manager.service could not be found.

when I press tab it throws the "Unit..."

It happens with other units as well, for example auditd.
In that case I simply installed audit and it solved for it but now it complains about display-manager.
I am pretty sure that installing a service that I don't need can't be a sensible solution,
therefore I hope you will have some better suggestion!

Offline

#2 2016-09-15 08:25:17

poisonby
Member
Registered: 2016-08-20
Posts: 8

Re: systemctl complains about missing unit when using autocompletion

I don't understand what this has to do with systemctl, it sounds like whatever autocompletion feature you have for your shell is broken.


Transhumanist, amateur programmer and Linux enthusiast.

Offline

#3 2016-09-15 08:37:04

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: systemctl complains about missing unit when using autocompletion

Perhaps you have a broken symlink (most likely /etc/systemd/system/display-manager.service) after removing a DM without disabling it first?

Offline

#4 2016-09-15 13:15:29

positronik
Member
Registered: 2016-02-08
Posts: 95

Re: systemctl complains about missing unit when using autocompletion

poisonby wrote:

I don't understand what this has to do with systemctl, it sounds like whatever autocompletion feature you have for your shell is broken.

I just have bash-completion[extra] installed and never modified anything so I don't think the problem
is due to that.

Raynman wrote:

Perhaps you have a broken symlink (most likely /etc/systemd/system/display-manager.service) after removing a DM without disabling it first?

That's a good point but I don't have any display-manager.service in /etc/systemd/system/

Edit: I just want to add that it happens only when I try to complete systemctl start and not enable, stop or others.

Last edited by positronik (2016-09-15 13:35:05)

Offline

#5 2016-09-15 17:18:19

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: systemctl complains about missing unit when using autocompletion

A quick google search led me to: https://github.com/systemd/systemd/issues/4114

Offline

#6 2016-09-18 13:22:48

ukhippo
Member
From: Non-paged pool
Registered: 2014-02-21
Posts: 366

Re: systemctl complains about missing unit when using autocompletion

Offline

Board footer

Powered by FluxBB