Comments (1)
I agree that the current logic is lacking.
With regards to notification mechanisms, I find the solutions currently brought up to either seem unclean (magic files in /tmp) or too complex (custom message bus).
I’m tempted to just keep the current logic, but extend the check to 1 year instead of 1 minute. If users don’t care about their appliance not working for a year, we can safely assume the data isn’t important anyway and corruption is okay. Also, regular software updates should happen more frequently than 1 year.
The 1 year change seems like the simplest solution to me, both because it requires only minimal changes and notably because it doesn’t introduce any new concepts. If we end up with a notification mechanism/message bus at some point, we can always revisit.
Does that sound reasonable?
BTW, the DHCP client currently sends a SIGHUP to init once it acquires a lease, which will then update its listeners if necessary. This is obviously a one-off solution which doesn’t extend to client applications. Thinking about it, DHCP is far from the only way to configure addresses, though: IPv6 autoconf may result in new addresses, and e.g. hot-plugging USB ethernet adapters even more so. Hence, applications which are interested in offering more specific listeners than wildcard listeners (e.g. :80
) should monitor network addresses anyway.
Currently, I’m inclined to try to have applications blackbox-monitor the resource in question (e.g. time, network addresses). gokrazy can provide helpers for things which turn out to be common, such as the WaitForClock one we already have. Adding one for network addresses and making init use it would be a welcome improvement.
from gokrazy.
Related Issues (20)
- Add a way to read `PackageConfig` config from an appended partition HOT 5
- Huge cpu and mem load on gok update HOT 11
- Windows not supported? (gok CLI) HOT 4
- Document 'GOKRAZY_PARENT_DIR' environment variable HOT 1
- Add support for the Raspberry Pi 5 HOT 7
- store the password only in hashed form HOT 2
- command not found HOT 6
- Executing on demand HOT 2
- GPIO / periph.io Edge detection / sysfs not working HOT 2
- support for mounting additional devices (as /perm, or separately) HOT 3
- Kernel panic - not syncing HOT 7
- How to compile this project on mac HOT 2
- continuous integration: add kexec test cycle HOT 2
- Go web application fails to load template file HOT 4
- Support installing microcode HOT 3
- WebAuthN authentication HOT 1
- MBR bootloader: fix 15/16 MB kernel limit HOT 1
- Documentation how to set sysctl HOT 8
- Feature request: Use Tailscale for gokrazy API authorization HOT 3
- Feature Request: Provide /sbin/modprobe implementation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gokrazy.