Skip to content

add recent sd_notify(3) notification commands#170

Merged
lucab merged 1 commit into
lucab:masterfrom
rektide:moar-notify
Jun 3, 2026
Merged

add recent sd_notify(3) notification commands#170
lucab merged 1 commit into
lucab:masterfrom
rektide:moar-notify

Conversation

@rektide

@rektide rektide commented May 28, 2026

Copy link
Copy Markdown

Add 8 missing sd_notify(3) notification commands

  • EXIT_STATUS
  • EXTEND_TIMEOUT_USEC
  • MAINPIDFDID
  • MONOTONIC_USEC
  • NOTIFYACCESS
  • RESTART_RESET
  • VARLINKERROR
  • WATCHDOG

As well as new NotifyState enum variants with input validation for NOTIFYACCESS.

Brings the enum from 14 to 22 variants, covering all simple KEY=VALUE sd_notify commands through systemd 261.

Still missing from full sd_notify(3) coverage: BARRIER=1 - requires a new notify_barrier().

@rektide rektide changed the title add missing sd_notify(3) notification commands to NotifyState enum add missing sd_notify(3) notification commands May 28, 2026
@rektide rektide changed the title add missing sd_notify(3) notification commands add recent sd_notify(3) notification commands May 28, 2026
Comment thread src/daemon.rs Outdated
@lucab

lucab commented May 29, 2026

Copy link
Copy Markdown
Owner

Thanks for the patch!
It looks like your PR is currently red because the MSRV/CI setup here got a bit stale.
I just did a small refresh in #171, if you rebase this one it should pass all checks.

Add 8 new NotifyState variants for sd_notify commands that were
previously unimplemented: ExitStatus, ExtendTimeoutUsec, Mainpidfdid,
MonotonicUsec, NotifyAccess (with input validation), RestartReset,
Varlinkerror, and WatchdogTrigger.
@rektide

rektide commented May 31, 2026

Copy link
Copy Markdown
Author

Thanks for the super speedy review! I've tried to incorporate your feedback. Let me know of course if I missed or if there's any other improvements!

Thanks for getting to 171 as well! I was going to look at doing that, but hadn't made the time!

@lucab lucab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@lucab lucab merged commit a098728 into lucab:master Jun 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants