Package host.anzo.commons.utils
Class SystemdUtils
java.lang.Object
host.anzo.commons.utils.SystemdUtils
Utility class for interacting with systemd notifications.
This class provides methods to notify systemd about the service status.
- Since:
- 6/30/2023
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidNotifies systemd that the service is ready.static voidSets the status of the service in systemd.
-
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
Sets the status of the service in systemd.- Parameters:
status- the status message to be set for the service.
-