You are not logged in.

#1 2017-05-28 22:04:21

4jakers18
Member
Registered: 2017-05-26
Posts: 8

Turn off start job?

A start job runs whenever I boot up my system, it is for a Ethernet to USB adapter I was using to install my system, as setting up the wifi with wpa_supplicant was not possible at the time, I no longer need to use it and I'm not sure how to disable it.

sys-subsystem-net-devices-enp0s20u2.device is the start job that runs, I have tried disabling or stopping it with systemctl, but it doesn't work.

Offline

#2 2017-05-28 22:07:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Turn off start job?

Please paste the exact error message and the exact commands that you ran to disable it; "doesn't work" is not an error message
https://bbs.archlinux.org/viewtopic.php?id=57855


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-05-28 22:08:25

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: Turn off start job?

$ systemctl list-unit-files | grep enabled

Should list units that have been manually enabled.  sys-subsystem-net-devices-enp0s20u2.device should normally be a dependency of some service that is waiting for the device to appear.

Offline

#4 2017-05-28 22:09:23

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Turn off start job?

No need to pipe:

systemctl list-unit-files --state enabled

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-05-28 23:24:46

4jakers18
Member
Registered: 2017-05-26
Posts: 8

Re: Turn off start job?

jasonwryan wrote:

No need to pipe:

systemctl list-unit-files --state enabled

I did that, I'm getting just

autovt@.service

dbus-org.freedesktop.NetworkManager.service


dbus-org.freedesktop.nm-dispatcher.service

dhcpcd@.service

NetworkManager-dispatcher.service

NetworkManager.service

Nothing else that looks related to networking at all. I'm not sure which one my problem might be caused by.

Offline

#6 2017-05-28 23:32:43

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: Turn off start job?

$ journalctl -b dhcpcd*@*.service

Please use code tags for commands plus their output and include the original command along with its output.
Edit:
Please also note Network_configuration#Network_managers

There are many solutions to choose from, but remember that all of them are mutually exclusive; you should not run two daemons simultaneously.

Last edited by loqs (2017-05-28 23:45:15)

Offline

#7 2017-05-29 00:02:10

4jakers18
Member
Registered: 2017-05-26
Posts: 8

Re: Turn off start job?

loqs wrote:
$ journalctl -b dhcpcd*@*.service

Please use code tags for commands plus their output and include the original command along with its output.
Edit:
Please also note Network_configuration#Network_managers

There are many solutions to choose from, but remember that all of them are mutually exclusive; you should not run two daemons simultaneously.

I got "Failed to add match 'dhcpcd@.service' : Invalid argument

Offline

#8 2017-05-29 00:06:30

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: Turn off start job?

loqs wrote:

Please use code tags for commands plus their output and include the original command along with its output.

Please post the exact command you entered and the output generated in code tags.
Please try

$ systemctl status dhcpcd*@*.service

instead of

$ journalctl -b -u dhcpcd*@*.service

Although both commands should be valid the former will provide more useful information.

Last edited by loqs (2017-05-29 00:16:05)

Offline

#9 2017-05-29 00:28:27

4jakers18
Member
Registered: 2017-05-26
Posts: 8

Re: Turn off start job?

loqs wrote:
loqs wrote:

Please use code tags for commands plus their output and include the original command along with its output.

Please post the exact command you entered and the output generated in code tags.
Please try

$ systemctl status dhcpcd*@*.service

instead of

$ journalctl -b -u dhcpcd*@*.service

Although both commands should be valid the former will provide more useful information.

I used

 journalctl -b dhpcd@.service 

as you suggested, I got

 Failed to add match 'dhcpcd@.service': Invalid argument 

Offline

#10 2017-05-29 00:29:59

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Turn off start job?

You missed the globs...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2017-05-29 00:36:21

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: Turn off start job?

jasonwryan wrote:

You missed the globs...

and the -u parameter so journalctl rightly complained dhpcd@.service is not valid argument to -b

Offline

#12 2017-05-29 03:25:15

4jakers18
Member
Registered: 2017-05-26
Posts: 8

Re: Turn off start job?

loqs wrote:
jasonwryan wrote:

You missed the globs...

and the -u parameter so journalctl rightly complained dhpcd@.service is not valid argument to -b

Done, it gave an output, It's rather too large to type in, Ill give the beginning and end.

First Line

 May 26 16:41:03 archlaptop systemd[1]: Starting dhcpcd on enp0s20u2...

Last line 

 May 28 18:32:28 archlaptop systemd[1]: dhcpcd@enp0s20u2.service: Job dhcpcd@enp0s20u2.service/start failed with result 'dependency'. 

unless this output is saved somewhere and I can post the entire thing somehow...

Offline

#13 2017-05-29 03:35:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Turn off start job?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB