unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Herd works with network not at all
@ 2020-12-20 21:37 znavko--- via
  2020-12-20 21:51 ` znavko
  0 siblings, 1 reply; 2+ messages in thread
From: znavko--- via @ 2020-12-20 21:37 UTC (permalink / raw)
  To: help-guix

[-- Attachment #1: Type: text/plain, Size: 1009 bytes --]

Hello, Guix! My simple script is just using for reconnect to Internet provider from those 2 I use.

It works bad.
I have internet after PC was booted.
And then I have to use this script to connect to another provider (just for to change IP).
I run my script with `# ./wpa bee` and it does things but I have no Internet and ping does not find host gnu.org

This script stops two services in my system
networking
wpa-supplicant
And then runs them with new wpa-supplicant config.

I placed `sleep 2` there between stopping and running services. But did not get it works fine.

My new config and using of another Internet provider works after reboot.
Also it works without herd just with

# wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
# dhclient -v

I cannot see errors in herd services. Herd services works badly, but hand made connection works fine.
Is the deal over 2 seconds of delay? Do I need to increase delay period?

Please, what do I need to consider?

[-- Attachment #2: wpa --]
[-- Type: application/octet-stream, Size: 794 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Herd works with network not at all
  2020-12-20 21:37 Herd works with network not at all znavko--- via
@ 2020-12-20 21:51 ` znavko
  0 siblings, 0 replies; 2+ messages in thread
From: znavko @ 2020-12-20 21:51 UTC (permalink / raw)
  To: znavko--- via

You know, after I increased delay after services were stopped 
to 8 seconds
and also placed dealy 8 seconds between start of wpa-supplicant and start of networking
My reconnections are working nice.
I think the reason is the delay, but it is just practical knowledge, not academical...


December 20, 2020 9:38 PM, "znavko--- via" <help-guix@gnu.org> wrote:

> Hello, Guix! My simple script is just using for reconnect to Internet provider from those 2 I use.
> 
> It works bad.
> I have internet after PC was booted.
> And then I have to use this script to connect to another provider (just for to change IP).
> I run my script with `# ./wpa bee` and it does things but I have no Internet and ping does not find
> host gnu.org
> 
> This script stops two services in my system
> networking
> wpa-supplicant
> And then runs them with new wpa-supplicant config.
> 
> I placed `sleep 2` there between stopping and running services. But did not get it works fine.
> 
> My new config and using of another Internet provider works after reboot.
> Also it works without herd just with
> 
> # wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
> # dhclient -v
> 
> I cannot see errors in herd services. Herd services works badly, but hand made connection works
> fine.
> Is the deal over 2 seconds of delay? Do I need to increase delay period?
> 
> Please, what do I need to consider?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-20 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-20 21:37 Herd works with network not at all znavko--- via
2020-12-20 21:51 ` znavko

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git