You are not logged in.

#1 2015-05-17 10:28:09

khoma
Member
Registered: 2011-02-08
Posts: 11

[SOLVED] Removing systemctl service trouble

Hello

During installation I followed the instructions below:

cd /etc/netctl
cp examples/wireless-wpa my-network

to create a config for my wireless network. The problem I have now is that I have since renamed that file to not include the "-" character, but the systemctl unit remains:

netctl@my\x2dnetwork.service   enabled

I would like to remove it. However, running

systemctl disable netctl@my\x2dnetwork.service

Does not work. Its still there, listed as active. Running

systemctl disable netctl@my-network.service

Does not work either. How can I get rid of it?

Last edited by khoma (2015-05-17 10:49:37)

Offline

#2 2015-05-17 10:38:55

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: [SOLVED] Removing systemctl service trouble

Hi,  Disabling the profile will only stop it from running at next boot by removing the symlink to the service. Use

# netctl stop profile 

to stop the profile after it has started.  Then disable the profile if it is still enabled (although it shouldn't be as you have done that already) and then delete the profile from the /etc/netctl directory.

edit: use

# netctl disable profile 

to ensure it is disabled

Last edited by dcdriving (2015-05-17 10:44:28)

Offline

#3 2015-05-17 10:41:22

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

Re: [SOLVED] Removing systemctl service trouble

khoma wrote:

I would like to remove it. However, running

systemctl disable netctl@my\x2dnetwork.service

Does not work. Its still there, listed as active.

"does not work"? What happened, what was the output? systemctl tells you when it removes symlinks, but if the service is not enabled, it will do nothing. And disable does not stop the service, so it should be no surprise that it is still active. What would be interesting is whether is it also still listed as "enabled".

I think systemctl didn't output anything and the service is indeed still enabled, because when you use a shell to run that command, you need to prevent the shell from treating the backslash as an escape character, otherwise you're disabling the service named "netctl@myx2dnetwork.service" and that one was never enabled in the first place. Escape the backslash using another backslash (my\\x2dnetwork) or put single quotes around in.

Offline

#4 2015-05-17 10:49:04

khoma
Member
Registered: 2011-02-08
Posts: 11

Re: [SOLVED] Removing systemctl service trouble

Ah, thank you. That seems to have fixed my wireless issues smile

Edit: using netctl to disable both profiles I can now use netctl-auto to get wireless going.

Last edited by khoma (2015-05-17 10:50:41)

Offline

Board footer

Powered by FluxBB