Package org.yamcs.utils
Class SDNotify
java.lang.Object
org.yamcs.utils.SDNotify
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static void
Tell the service manager that Yamcs has finished starting.static void
Tell the service manager that Yamcs is beginning its shutdown.
-
Constructor Details
-
SDNotify
public SDNotify()
-
-
Method Details
-
sendStartupNotification
Tell the service manager that Yamcs has finished starting.This method requires that
isSupported()
returnstrue
.- Throws:
IOException
-
sendStoppingNotification
public static void sendStoppingNotification()Tell the service manager that Yamcs is beginning its shutdown.This method requires that
isSupported()
returnstrue
. -
isSupported
public static boolean isSupported()
-