Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
systemd支持套接字激活,这意味着套接字将作为打开的文件描述符传递给守护进程。有没有办法从 Java 中检索和使用这些套接字?
是的,这就是System.inheritedChannel()目的。
System.inheritedChannel()
在 systemd 方面,您应该能够通过设置StandardInput=socket.
StandardInput=socket