Copyright © 2022 Oleg Pykhalov Create a PID file after containerd is ready to serve requests. Fixes . --- a/cmd/containerd/command/notify_linux.go 1970-01-01 03:00:01.000000000 +0300 +++ b/cmd/containerd/command/notify_linux.go 2022-07-02 04:42:35.553753495 +0300 @@ -22,15 +22,22 @@ sd "github.com/coreos/go-systemd/v22/daemon" "github.com/containerd/containerd/log" + + "os" + "strconv" ) // notifyReady notifies systemd that the daemon is ready to serve requests func notifyReady(ctx context.Context) error { + pidFile, _ := os.Create("/run/containerd/containerd.pid") + defer pidFile.Close() + pidFile.WriteString(strconv.FormatInt(int64(os.Getpid()), 10)) return sdNotify(ctx, sd.SdNotifyReady) } // notifyStopping notifies systemd that the daemon is about to be stopped func notifyStopping(ctx context.Context) error { + os.Remove("/run/containerd/containerd.pid") return sdNotify(ctx, sd.SdNotifyStopping) } ss='tabs'> aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-11-02installer: Add core dump support....Fixes: <https://issues.guix.gnu.org/58733> * gnu/installer.scm (installer-program): Enable core dump generation. * gnu/installer/dump.scm (%core-dump): New variable. (prepare-dump): Copy the core dump file. * gnu/installer/newt/welcome.scm (run-welcome-page): Propose to report an installation that previously generated a core dump. Mathieu Othacehe
2022-02-02installer: Make dump archive creation optional and selective....* gnu/installer.scm (installer-program): Let the installer customize the dump archive. * gnu/installer/dump.scm (prepare-dump, make-dump): Split make-dump in prepare-dump, which copies the files necessary for the dump, and make-dump which creates the archive. * gnu/installer/record.scm (installer): Add report-page field. Change documented return value of exit-error. * gnu/installer/newt.scm (exit-error): Change arguments to be a string containing the error. Let the user choose between exiting and initiating a dump. (report-page): Add new variable. * gnu/installer/newt/page.scm (run-dump-page): New variable. * gnu/installer/newt/dump.scm: Delete it. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Josselin Poiret
2022-02-02installer: Add crash dump upload support....Suggested-by: Josselin Poiret <dev@jpoiret.xyz> * gnu/installer/dump.scm: New file. * gnu/installer/newt/dump.scm: New file. * gnu/local.mk (INSTALLER_MODULES): Add them. * gnu/installer/record.scm (<installer>)[dump-page]: New field. * gnu/installer/steps.scm (%current-result): New variable. (run-installer-steps): Update it. * gnu/installer.scm (installer-program): Add tar and gip to the installer path. Add guile-webutils and gnutls to the Guile extensions. Generate and send the crash dump report. * gnu/installer/newt.scm (exit-error): Add a report argument. Display the report id. (dump-page): New procedure. (newt-installer): Update it. Mathieu Othacehe