Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send status to systemd on daemon start
systemd service files run in no-forking mode (--foreground) since 8b6f581. Rearrange sd_notify() call in become_daemon() to only send status to systemd in this mode (Type=notify is not designed to monitor forking). Drop READY=0 (it does nothing) and MAINPID= (unnecessary because the process spawned by systemd is already the main PID). Also remove STATUS= prefix from debug messages. Signed-off-by: Marcos Mello <[email protected]> Reviewed-by: Andreas Schneider <[email protected]> Reviewed-by: Alexander Bokovoy <[email protected]> Reviewed-by: Andrew Bartlett <[email protected]>
- Loading branch information