Class SDNotify

java.lang.Object
org.yamcs.utils.SDNotify

public class SDNotify extends Object
Helper utility for sending systemd notification events about state changes.

The primary use case is to send a notification to the systemd notification when Yamcs has finished starting. This can be used when Yamcs runs as a service unit with Type=notify in its definition file.

See https://www.freedesktop.org/software/systemd/man/sd_notify.html

  • Constructor Details

    • SDNotify

      public SDNotify()
  • Method Details

    • sendStartupNotification

      public static void sendStartupNotification() throws IOException
      Tell the service manager that Yamcs has finished starting.

      This method requires that isSupported() returns true.

      Throws:
      IOException
    • sendStoppingNotification

      public static void sendStoppingNotification()
      Tell the service manager that Yamcs is beginning its shutdown.

      This method requires that isSupported() returns true.

    • isSupported

      public static boolean isSupported()