[systemctl enable] how to modify the waiting time at startup
by thomasbb from LinuxQuestions.org on (#5C4B5)
Some time ago, I enabled a dhcpcd service to have Internet access through my mobile by USB:
Code:sudo enable dhcpcd@enp0s26f7u2.serviceBut now, I plan to use an ethernet link, without disabling the service. The problem is that at startup, "a start job is running"... Is there a way to reduce the waiting time from 1'30" to say 10"?
When I type systemctl cat dhcpcd @ enp0s26f7u2.service, I get:
Code:$ systemctl cat dhcpcd@enp0s26f7u2.service
# /usr/lib/systemd/system/dhcpcd@.service
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/dhcpcd/%I.pid
ExecStart=/usr/bin/dhcpcd -q -w %I
ExecStop=/usr/bin/dhcpcd -x %I
[Install]
WantedBy=multi-user.targetis there a way to add a timer there?


Code:sudo enable dhcpcd@enp0s26f7u2.serviceBut now, I plan to use an ethernet link, without disabling the service. The problem is that at startup, "a start job is running"... Is there a way to reduce the waiting time from 1'30" to say 10"?
When I type systemctl cat dhcpcd @ enp0s26f7u2.service, I get:
Code:$ systemctl cat dhcpcd@enp0s26f7u2.service
# /usr/lib/systemd/system/dhcpcd@.service
[Unit]
Description=dhcpcd on %I
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=forking
PIDFile=/run/dhcpcd/%I.pid
ExecStart=/usr/bin/dhcpcd -q -w %I
ExecStop=/usr/bin/dhcpcd -x %I
[Install]
WantedBy=multi-user.targetis there a way to add a timer there?