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

Daemon program on boot while building raspberry pi custom OS #281

Open
Beebeejohn opened this issue Nov 19, 2020 · 5 comments
Open

Daemon program on boot while building raspberry pi custom OS #281

Beebeejohn opened this issue Nov 19, 2020 · 5 comments

Comments

@Beebeejohn
Copy link

So for example if I want to add a1.py as a daemon, so the whole python code content for a1.py should be added or pasted in files/etc/rc.local. Was it like that? Can you tell me

Originally posted by @Beebeejohn in #279 (comment)

@eugulixes
Copy link
Contributor

You have to copy a1.py to the image somehow and then put /path/to/a1.py to files/etc/rc.local. However, Pieman doesn't support copying files to the images so far. It will be great if you implemented the feature in Pieman and sent us a PR. But still, you can copy a1.py to your image after building.

@Beebeejohn
Copy link
Author

Ok I will try it . Thank you

@Beebeejohn
Copy link
Author

Beebeejohn commented Nov 23, 2020

Actually If I mentioned the path of python code in files/etc/rc.loca/ for daemon process. On boot, that daemon process is not working . Can you tell me how to add daemon program before building raspberry pi OS, such that daemon program should be running on booting the raspberry pi

@Beebeejohn
Copy link
Author

Can someone tell me how to add daemon program while building raspberry pi os not after building raspberry pi OS since above method is not working

@eugulixes
Copy link
Contributor

I described above how it's supposed to work. If it doesn't work as described it means there is a bug.

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