Skip to content

Long running migrations can cause systemd to terminate daemon on start #7269

@Stebalien

Description

@Stebalien

Version information:

0.5.0

Description:

Now that go-ipfs supports systemd's "notification" system, we need to tell systemd to repeatedly extend time startup timeout while performing repo migrations. Otherwise, systemd may kill the daemon thinking it timed out on startup.

We can do this by repeatedly sending EXTEND_TIMEOUT_USEC=... to systemd's notification socket using github.com/coreos/go-systemd/v22/daemon. See cmd/ipfs/daemon_linux.go for how we interact with systemd's notification service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low: Not priority right nowexp/intermediatePrior experience is likely helpfulhelp wantedSeeking public contribution on this issuekind/bugA bug in existing code (including security flaws)status/readyReady to be workedtopic/daemon + inittopic/repoTopic repo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions