Lennart Poettering on Nostr: PSA: In context of the xzpocalypse we now added an example reimplementation of ...
PSA: In context of the xzpocalypse we now added an example reimplementation of sd_notify() to our man page:
https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#NotesIt's pretty comprehensive (i.e. uses it for reload notification too), but still relatively short.
In the past, I have been telling anyone who wanted to listen that if all you want is sd_notify() then don't bother linking to libsystemd, since the protocol is stable and should be considered the API, not our C wrapper around it. After all, the protocol is so trivial
Published at
2024-04-02 16:59:04Event JSON
{
"id": "e13ee8c96cbd72fb384c1673439b898491bd73d4a94fcc26901745b84384d317",
"pubkey": "1d95c32d9a9d95a54f98eb2eaa156f3d3a71dc49eca2c960b2b89962758f1cc0",
"created_at": 1712077144,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/pid_eins/statuses/112202687764571433",
"activitypub"
]
],
"content": "PSA: In context of the xzpocalypse we now added an example reimplementation of sd_notify() to our man page:\n\nhttps://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Notes\n\nIt's pretty comprehensive (i.e. uses it for reload notification too), but still relatively short.\n\nIn the past, I have been telling anyone who wanted to listen that if all you want is sd_notify() then don't bother linking to libsystemd, since the protocol is stable and should be considered the API, not our C wrapper around it. After all, the protocol is so trivial",
"sig": "6c1db0f12c4cdd64cac21adec9068045a5977fb7fae9245e99cf822fa68586d3cfc7532e83ab314501bfb5a391639df676f03ce4bd004b0fd2a61e599986d2f0"
}