Skip to content

Instantly share code, notes, and snippets.

@JadedBlueEyes
Created April 6, 2025 23:57
Show Gist options
  • Save JadedBlueEyes/44801ea976bab82177849f006b7a2cba to your computer and use it in GitHub Desktop.
Save JadedBlueEyes/44801ea976bab82177849f006b7a2cba to your computer and use it in GitHub Desktop.
{
"content": {
"body": "> <@cebbinghaus:beeper.com> Ioved the read. But I still have no idea why notify-reload is better\n\nBasically the benefit is that if you have a script like\n\n```\ncp newcert /etc/kanidm/mycert.crt\nsystemctl reload\ncurl https://mykanidm.com\n```\n\nThat `systemctl reload` blocks until the reload has completed.\n\nSo I'm guaranteed that the curl request will respond with the new cert. ",
"format": "org.matrix.custom.html",
"formatted_body": "<mx-reply><blockquote><a href=\"https://matrix.to/#/!fzbFDgtoaOQXSSxOZc:gitter.im/$p1dwFimh2lfYyfe5AfW7t9Bzh-KvKMM8tPcT00BQHio?via=matrix.org&via=gitter.im&via=fairydust.space\">In reply to</a> <a href=\"https://matrix.to/#/@cebbinghaus:beeper.com\">@cebbinghaus:beeper.com</a><br />Ioved the read. But I still have no idea why notify-reload is better</blockquote></mx-reply><p>Basically the benefit is that if you have a script like</p>\n<p><code>cp newcert /etc/kanidm/mycert.crt systemctl reload curl https://mykanidm.com</code></p>\n<p>That <code>systemctl reload</code> blocks until the reload has completed.</p>\n<p>So I'm guaranteed that the curl request will respond with the new cert.</p>",
"m.relates_to": {
"m.in_reply_to": {
"event_id": "$p1dwFimh2lfYyfe5AfW7t9Bzh-KvKMM8tPcT00BQHio"
}
},
"msgtype": "m.text"
},
"event_id": "$p25_iaVM5v6pcqAid3aPKhYsRAamaZxHPPiOF6xPjmA",
"origin_server_ts": 1743728069594,
"room_id": "!fzbFDgtoaOQXSSxOZc:gitter.im",
"sender": "@arianvp:matrix.org",
"type": "m.room.message",
"unsigned": {
"age": 255470350
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment