You are not logged in.
Pages: 1
Hello archies,
please, I have a problem with stopping core netctl service. I'm using NetworkManager and netctl was active just for starts (first steps after installation). I'm using classing DHCP connection and I cannot stop netctl profile.
systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
netctl@ethernet\x2ddhcp.service loaded failed failed A basic dhcp ethernet connection
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.I tried
sudo systemctl disable netctl
sudo systemctl disable netctl@ethernet
sudo systemctl disable netctl@ethernet\x2ddhcp.service
sudo systemctl disable netctl@ethernet@dhcp.serviceBut doesn't work. After reboot systemd still want load this service
As you can see I don't have anything in /etc/netctl directory
ls -la /etc/netctl/
total 20
drwxr-xr-x 5 root root 4096 jún 10 00:01 .
drwxr-xr-x 75 root root 4096 júl 21 20:43 ..
drwxr-xr-x 2 root root 4096 jún 13 2016 examples
drwxr-xr-x 2 root root 4096 jún 13 2016 hooks
drwxr-xr-x 2 root root 4096 jún 13 2016 interfacesI also tried netctl list but this output is empty
I also tried
sudo netctl disable dhcp
No regular unit file found for profile 'dhcp'
[zrebec@jessie ~]$ sudo netctl disable ethernet@dhcp
No regular unit file found for profile 'ethernet@dhcp'
[zrebec@jessie ~]$ sudo netctl disable ethernet\x2ddhcp
No regular unit file found for profile 'ethernetx2ddhcp'
[zrebec@jessie ~]$ sudo netctl disable ethernet
No regular unit file found for profile 'ethernet'
[zrebec@jessie ~]$ sudo netctl disable ethernet\x2ddhcp.service
No regular unit file found for profile 'ethernetx2ddhcp.service'Nothing works
Thanks for any advice
Many regards
Last edited by zrebec (2017-07-22 12:50:01)
Offline
Offline
You need to prevent your shell from swallowing the backslash. You can either double the backslash or put quotes around the service name.
This applies to systemctl, at least. Maybe netctl handles systemd's escape mechanism automatically, so that you can pass the unescaped name "ethernet-dhcp" to `netctl disable`. `netctl list` seems to be the way to get the names of available profiles.
Offline
Hello,
thanks for advice. The output of systemctl list-unit-files | grep enabled is:
org.cups.cupsd.path enabled
autovt@.service enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
display-manager.service enabled
gdm.service enabled
getty@.service enabled
gpm.service enabled
minidlna.service enabled
netctl@ethernet\x2ddhcp.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
org.cups.cupsd.service enabled
systemd-fsck-root.service enabled-runtime
org.cups.cupsd.socket enabled
remote-fs.target enabled Thanks to advice to prevent swallowing the backslash. But this disable profile with unescaped name helps
sudo netctl disable ethernet-dhcp
Removed /etc/systemd/system/multi-user.target.wants/netctl@ethernet\x2ddhcp.service.Now the list of enabled service looks good
org.cups.cupsd.path enabled
autovt@.service enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service enabled
display-manager.service enabled
gdm.service enabled
getty@.service enabled
gpm.service enabled
minidlna.service enabled
NetworkManager-dispatcher.service enabled
NetworkManager-wait-online.service enabled
NetworkManager.service enabled
org.cups.cupsd.service enabled
systemd-fsck-root.service enabled-runtime
org.cups.cupsd.socket enabled
remote-fs.target enabled Very thanks. Problem solved! ![]()
Solution for me:
sudo netctl disable ethernet-dhcpOffline
Pages: 1