public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@kernel.org
To: linux-man@vger.kernel.org
Subject: [Bug 218266] New: Need article about Linux shutdown process
Date: Fri, 15 Dec 2023 06:29:51 +0000	[thread overview]
Message-ID: <bug-218266-11311@https.bugzilla.kernel.org/> (raw)

https://bugzilla.kernel.org/show_bug.cgi?id=218266

            Bug ID: 218266
           Summary: Need article about Linux shutdown process
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: man-pages
          Assignee: documentation_man-pages@kernel-bugs.osdl.org
          Reporter: aralni@mail.ru
        Regression: No

Hi,

I try make correct shutdown (reboot/poweroff) process for applications, but not
find info about it.

There are several opinions about this but none of them are confirmed.

1. You need to process the SIGTERM signal. But no one has been able to do this
successfully in the context of system shutdown. This is a very common belief or
misconception. For example:
https://bugzilla.mozilla.org/show_bug.cgi?id=1837907

2. There is no need to save the data at all - let me get lost. But the system
will turn off faster. http://freepascal.ru/forum/viewtopic.php?f=1&t=43642

These two directions lead to data loss.

3. It is necessary to process the signal from systemd PrepareForShutdown using
dbus. This is a cleaner approach, but more complex and higher level than the
kernel signal. In addition, the program must support dbus, and this may seem
cumbersome.

Some programming languages (the finalization section in Pasal) contain a system
shutdown handler in rtl, while for others this must be separately in each
program.

We need a detailed article (apparently not only in man, but also on the web),
describing in detail for programs and programming languages (at least C and
Pascal) the situation of shutting down the system with working examples.
Otherwise, there is serious confusion, leading to disputes among programmers
and, ultimately, to data loss.

Thank You.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

             reply	other threads:[~2023-12-15  6:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-15  6:29 bugzilla-daemon [this message]
2023-12-15 10:27 ` [Bug 218266] Need article about Linux shutdown process bugzilla-daemon
2023-12-15 11:24 ` bugzilla-daemon
2023-12-15 11:34 ` bugzilla-daemon
2023-12-22 14:09 ` bugzilla-daemon
2023-12-22 19:14 ` bugzilla-daemon
2023-12-25 10:19 ` bugzilla-daemon

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=bug-218266-11311@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@kernel.org \
    --cc=linux-man@vger.kernel.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