Conversation
|
@mdecimus could you have a look at this? It's a pretty small but very useful feature. |
|
This needs to be gated as not everybody uses systemd or Linux. Also, see https://github.com/stalwartlabs/stalwart/blob/main/CONTRIBUTING.md as some contributions can't be accepted at this moment. |
I would consider this change a very small and well-scoped change 🤔 IMO suppressing the errors functions well enough as gating, but I'll implement a proper check 👍 |
fe2c1d7 to
56a0bcf
Compare
|
Now a check for systemd support is in place. |
|
@mdecimus could you take another look? |
|
Sorry, this can't be merged now. I suggest to run your own custom build in the meantime. |
@provokateurin please remove the @mdecimus please run |

Closes #283
Allows a systemd service to use
Type=notify, so it's only considered ready once all the listeners are up.Additionally I also added sd_notify Reloading support, so systemd knows when stalwart is reloading the config due to an API call to the management API.
See https://www.freedesktop.org/software/systemd/man/latest/systemd.service.html#Options and https://www.freedesktop.org/software/systemd/man/latest/sd_notify.html#Well-known%20assignments.