天天看点

Embeddable daemonization library

Embeddable daemonization library Usage Download Source code Issues License Javadoc This is a Java library you can use in your application to support Unix daemonization. By taking advantages of POSIX API, this library lets you fork your process into background with proper daemonization steps. It currently has several features, which we'll see in more details. One feature of this library lets you fork a copy into background as a real Unix daemon, when started in the foreground. While doing this, you can also tweak JVM parameters or arguments. Unlike the implementation based on Runtime.exec, this version correctly starts a new process group, changes the current directory, and closes file descriptors. Your integrate akuma into your main method like this: