Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
have a script run on network state change
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jlm_devel
n00b
n00b


Joined: 10 Nov 2007
Posts: 48

PostPosted: Mon Feb 03, 2020 6:56 pm    Post subject: have a script run on network state change Reply with quote

Hi,
I've a problem to have the ntp working properperly
/etc/init.d/ntp-client start is setting up the date correctly when network is up, the issue is that the network might not be up at start time....
so I want to know if there is a script that is run on network state change, so that I can start the service when ntp will be available
thanks and regards
Back to top
View user's profile Send private message
Gatak
Apprentice
Apprentice


Joined: 04 Jan 2004
Posts: 173

PostPosted: Mon Feb 03, 2020 11:33 pm    Post subject: Reply with quote

Have a look at postup https://wiki.gentoo.org/wiki/OpenRC_notebook_roaming_How-To#Network_specific_log-in_procedure_example
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum