You are not logged in.

#1 2016-06-17 09:30:23

mattarch
Member
Registered: 2015-08-20
Posts: 5

Can you modify the timeout bringing up a network device?

Is there a way to modify the timeout waiting for a startjob on a particular device?

i.e. "a start job is running for sys-usb-ethernet.device (1m30s)"

I'm using netctl to manage my networking connections; this is all good, it works well. However, I have a USB-Ethernet adaptor which I don't use when travelling about. It's a second Ethernet adaptor which I use to serve DHCP, TFTP and NFS to a private development network (using dnsmasq). When I use my laptop "on the go", every time I boot I have to wait 1m30s for it to detect a device that I know isn't there which (as you can imagine) gets a little frustrating!

Is there any way to modify this timeout to something a little more sensible? I.e. 10seconds.... I've searched online (and through my system config fiels) but can't find anything...... I'm sure it must a simple config key somewhere!?

Thanks.

Offline

#2 2016-06-18 15:30:05

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,302

Re: Can you modify the timeout bringing up a network device?

You could create a drop in conf file for the unit using:

# systemctl edit sys-usb-ethernet.device

with this content:

[UNIT]
JobTimeoutSec=10

I have not tested this though.

Another not tested idea:

# systemctl set-property sys-usb-ethernet.device SYSTEMD_READY=0

This variable can also be set in a udev rule if this command doesn't work (man systemd.device).

Offline

#3 2016-06-18 15:49:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,447
Website

Re: Can you modify the timeout bringing up a network device?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB