mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Let's make sysprof-cli send a READY=1 sd-notify message when it's finished its setup logic. This allows starting sysprof as a systemd service and delaying startup of other services until sysprof has finished its setup logic. This ensures we don't miss any profiling data when running sysprof-cli in a systemd service as part of the bootup process. We skip this step for now when we're running a child process so that we don't accidentally interfere with a child process that receives an sd-notify socket and is supposed to send notifications on it instead of sysprof-cli.