package devkit
Module Systemd.DaemonSource
Subset of sd-daemon in ocaml.
The following functionalities are provided:
- File descriptor passing for socket-based activation
- Detection of systemd boots
true if the system was booted with systemd.
Returns file descriptors that have been passed by systemd.
This function call ensures that the FD_CLOEXEC flag is set for the passed file descriptors, to make sure they are not passed on to child processes. If FD_CLOEXEC shall not be set, the caller needs to unset it after this call for all file descriptors that are used.
Same as listen_fds but return lwt file descriptors.
Similar to Daemon.get_args but without the foregound and pidfile option.
Similar to Daemon.manage but sets to run in the foreground.