Poky initscripts: Add start/stop/status to initscripts #poky #yocto
"Dvir Bechor" <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <[email protected]> |
Hello, I’ve came across an issue in the “sendsigs” initscript while using the service command from init-system-helpers. ‘service —status-all’ command runs (almost) every initscript with status as an argument, and if usage is printed then the status of the service is unknown. Some initscripts built-in initscripts (such as sendsigs, umountfs) have no switch-case or argument validation, passing status as an argument makes it run as usual, which causes unexpected behavior. I believe this can be solved by adding switch-case or argument validation to those initscripts, or by patching the service script to ignore the sendsigs script like it does for halt or reboot. Are you familiar with this issue? What do you think is the best solution? I don’t mind adding a patch for either one of the solutions. Thanks, Dvir Bechor.