Skip to content

Wait for the reload with Type=notify  #6162

@wferi

Description

@wferi

Submission type

  • Request for enhancement (RFE)

man systemd.service states:

It is strongly recommended to set ExecReload= to a command that not only triggers a configuration reload of the daemon, but also synchronously waits for it to complete.

I really wish there was a way to achieve this without creating a new IPC channel. At least for Type=notify services, something like a NotifyReloadSec directive could be introduced, which, if set, instructs systemd to wait for the service send RELOADING=1 in the given time, then wait for READY=1 to consider the reload operation finished. Then ExecReload could stay a simple kill, and still systemctl reload wouldn't return until the operation finishes or times out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature requestpid1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions