Skip to content

Create Daemon and init script for uartserver #16

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

Closed
ZachTurner07 opened this issue Apr 10, 2021 · 6 comments
Closed

Create Daemon and init script for uartserver #16

ZachTurner07 opened this issue Apr 10, 2021 · 6 comments
Assignees
Labels
Milestone

Comments

@ZachTurner07
Copy link
Collaborator

now that a user application is working, it needs to be "daemon"ized if it makes sense.

DoD: add a daemon feature to the UART server

@ZachTurner07 ZachTurner07 added the enhancement New feature or request label Apr 10, 2021
@ZachTurner07 ZachTurner07 self-assigned this Apr 10, 2021
@ZachTurner07 ZachTurner07 added the todo Work which needs to be done label Apr 10, 2021
@CalebProvost
Copy link
Contributor

Our yocto layer has been set up to install your daemon similarly to that of Assignment 6. I haven't tested it yet, but when your ready, the init script we made for A6 should work to init your daemon as well.

@ZachTurner07
Copy link
Collaborator Author

init script created, now we just need to run it auto on start up

@ZachTurner07 ZachTurner07 added WIP Current "work in progress" and removed todo Work which needs to be done labels Apr 17, 2021
@ZachTurner07 ZachTurner07 added this to the Sprint 3 milestone Apr 18, 2021
@CalebProvost
Copy link
Contributor

As per the communication we had with Dan (see below). The init script process we were taught in this course isn't going to work...
We're gonna need to update it to reflect a .service style daemon as referenced with the link provided.

  • Caleb Provost
    @dan,
    Is the inherit update-rc.d method we learned in this course gonna work for OE4T, or is there a different method that is used compared to our current understanding & implementation?
    https://github.com/cu-ecen-5013/final-project-CalebProvost|cu-ecen-5013/final-project-CalebProvost

  • Dan
    I expect it should work as we did in the class, but the best thing to do is always reference another recipe you are using with the same branch, so I often cross reference whatever I've done before with whatever other recipes in the same branches or used layers are doing
    Poky should have lots of examples
    Actually now that I think about it I think your default startup is going to be systemd
    so initscripts won't do anything
    and you need to look for a systemd startup example

  • Caleb Provost
    Okay. I'll hunt down some systemd examples and see how to migrate our methods with that.
    Any good resources besides google/yocto manual?
    I'm not against it. Just figured I'd ask someone with the experience

  • Dan
    The mender guys often have some good examples for this kind of stuff, I think I'd look at https://hub.mender.io/t/how-to-create-your-first-recipe-and-enable-auto-start-using-systemd/1195

  • Caleb Provost
    Yup. I knew I should ask. That looks like a gold-mine. Thank you!

@CalebProvost
Copy link
Contributor

With @ZachTurner07's uartserver.service code I updated our yocto-recipe to install the updated version as an initialized daemon.

The latest image is current;y flashing, results pending...

@CalebProvost
Copy link
Contributor

Results of the latest changes weren't so good... The image is unusable with the init script adaption and causes it to no longer boot....

@CalebProvost
Copy link
Contributor

Init script adaption ended up blocking the image from functioning.
Closing this issue as a blocker and reopened it as #29 in order to solve during next Sprint.

@CalebProvost CalebProvost added blocker blocker encountered/end of sprint complete and removed WIP Current "work in progress" enhancement New feature or request blocker blocker encountered/end of sprint labels Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants