You are not logged in.

#1 2017-07-22 10:16:22

zrebec
Member
Registered: 2017-07-22
Posts: 4

[SOLVED] Stop netctl service

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.service

But 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 interfaces

I 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 smile Thanks for any advice

Many regards

Last edited by zrebec (2017-07-22 12:50:01)

Offline

#2 2017-07-22 10:34:24

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Stop netctl service

What's the output of...

systemctl list-unit-files | grep enabled

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-07-22 10:36:08

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

Re: [SOLVED] Stop netctl service

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

#4 2017-07-22 12:49:35

zrebec
Member
Registered: 2017-07-22
Posts: 4

Re: [SOLVED] Stop netctl service

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 smile

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 smile

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! smile

Solution for me:

sudo netctl disable ethernet-dhcp

Offline

Board footer

Powered by FluxBB