Package de.afoo.sdnotify
Class SDNotifySocketFile
java.lang.Object
de.afoo.sdnotify.SDNotifySocketFile
Thin abstraction around the UNIX socket file systemd stores in the NOTIFY_SOCKET environment
variable of processes it starts.
-
Method Summary
-
Method Details
-
get
Returns null if the NOTIFY_SOCKET environment variable is not set (which should mean we are not running under systemd in most cases)- Returns:
- the UNIX socket or
null
-
exists
public static boolean exists()Check if the UNIX socket to communicate with systemd exists.- Returns:
- if the socket exists
-