Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"load" service doesn't start on device reboot #55

Open
dschaub opened this issue Jul 12, 2023 · 2 comments
Open

"load" service doesn't start on device reboot #55

dschaub opened this issue Jul 12, 2023 · 2 comments

Comments

@dschaub
Copy link

dschaub commented Jul 12, 2023

Hi! I used this as a guide for getting a WiFi adapter driver compiled, and it worked great. The only problem is that the "load" service exits successfully when it's run, so when the balenaOS device reboots it doesn't run again, and won't run again until a new release is created.

I solved the problem by adding a sleep infinity to load.sh, and then changing the service's restart to always, to make sure it gets run at least once per device boot. It's not ideal though because any other failure that causes the container to restart will interrupt the WiFi connection by removing and re-adding the driver module, however unlikely that may be.

Is there another option that I'm not seeing to make sure the "load" service always runs once on boot?

@CedricRBR
Copy link

Hi @dschaub Did you find a better solution ?

@dschaub
Copy link
Author

dschaub commented Oct 23, 2023

Not yet! This is still working well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants