Class SystemdUtils

java.lang.Object
host.anzo.commons.utils.SystemdUtils

public class SystemdUtils extends Object
Utility class for interacting with systemd notifications. This class provides methods to notify systemd about the service status.
Since:
6/30/2023
  • Constructor Details

    • SystemdUtils

      public SystemdUtils()
  • Method Details

    • notifyReady

      public static void notifyReady()
      Notifies systemd that the service is ready. This method sends a notification with the parameter "--ready".
    • setStatus

      public static void setStatus(String status)
      Sets the status of the service in systemd.
      Parameters:
      status - the status message to be set for the service.