call sd-notify after init and before exit
This change adds a sd_notify
call after the service is initialized and before it shuts down in order to notify systemd of its state changes.
It also makes the Type=notify
systemd service option available to users.
This feature is behind a systemd
feature flag, so to start a systemd service using Type=notify
add --features systemd
to your cargo build
.
-
I agree to release my code and all other changes of this MR under the Apache-2.0 license
Edited by Vladan Popovic