Fork me on GitHub

Native library

The integration uses JNA (net.java.dev.jna:jna) to interface with libsystemd natively.

Running without JNA

It used to be possible to switch the implementation from JNA with an executable call to the systemd-notify program that is bundled with systemd.

However, that method is no longer supported.

For the time being, JNA is the only reliable way to interface with systemd via libsystemd, as the JVM does not yet implement proper support for Datagram Channels (SOCK_DGRAM) over Unix Domain Sockets (AF_UNIX).