poky.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: "Dvir Bechor" <dvirbechor3@gmail.com>
To: poky@lists.yoctoproject.org
Subject: Poky initscripts: Add status to “sendsigs” initscript
Date: Mon, 07 Aug 2023 07:21:31 -0700	[thread overview]
Message-ID: <zfJl.1691418091730277087.5rng@lists.yoctoproject.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

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 init script with status as an argument, and if usage is printed then the status of the service is unknown.

Since “sendsigs” init script have no switch-case or argument validation, passing status as an argument makes it run as usual, which create an unexpected bug, and sends a kill signal to all processes.

I believe this can be solved by adding switch-case or argument validation to sendsigs, 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.

[-- Attachment #2: Type: text/html, Size: 5011 bytes --]

                 reply	other threads:[~2023-08-07 14:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=zfJl.1691418091730277087.5rng@lists.yoctoproject.org \
    --to=dvirbechor3@gmail.com \
    --cc=poky@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).