You are not logged in.
I have enabled a netctl connection. When I run "netctl list" after boot, the connection shows as active (it has an asterisk in front of it). When I run 'netctl enable <profile>, netctl reports that the profile is already enabled. And, of course, I'm connected to the net using this wifi connection. So all is exactly as it should be.
But when I run "systemctl list-unit-files", the netctl@profile is not listed. This happens only on one laptop I'm using, I've never had it happen before. Any ideas why the unit-file for the active netctl profile isn't showing in the systemctl list?
Last edited by dojero (2019-04-05 19:59:40)
Offline
Please paste the output of `systemctl list-unit-files --state=enabled`
Moving to NC...
Offline
$ sudo systemctl list-unit-files --state enabled
UNIT FILE STATE
acpid.service enabled
autovt@.service enabled
bluetooth.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.timesync1.service enabled
getty@.service enabled
piavpn.service enabled
systemd-timesyncd.service enabled
remote-fs.target enabled
9 unit files listed.and
sudo netctl enable allentown
The profile 'allentown' is already enabledOffline
I've noticed that systemctl sometimes doesn't list all enabled units, particularly after enabling & disabling some beforehand.
Try this instead:
ls -lR /etc/systemd/systemDo the netctl units show up in that list?
Jin, Jîyan, Azadî
Offline
Yes, netctl shows up there. But isn't this a list of the active units (as opposed to the enabled units)?
Offline
No, that command shows enabled units — the unit files are symlinked to the .target directories to enable them.
It won't show --user services though, run ls -lR on ~/.config/systemd/user for those.
To list active units run
systemd-cglsOr
systemd-cgtopJin, Jîyan, Azadî
Offline
Excellent. Thanks very much for the help. Marking this solved.
Offline
Marking this solved.
Well it was a workaround rather than a solution, perhaps you should open an issue about this – systemctl should list everything.
(I would pursue it myself but I've switched to OpenRC.)
Jin, Jîyan, Azadî
Offline