]> go.fuhry.dev Git - runtime.git/commit
utils/daemon: add new package
authorDan Fuhry <dan@fuhry.com>
Fri, 13 Sep 2024 00:38:32 +0000 (20:38 -0400)
committerDan Fuhry <dan@fuhry.com>
Fri, 13 Sep 2024 00:38:32 +0000 (20:38 -0400)
commitfbe694d5b69a37232aff664206bf5aa3583de894
tree037bce2430b49fc8b62c6a61913e34fc546dc607
parent3ad0365f186491093e261d43c745fb63cb94c22d
utils/daemon: add new package

Add new "daemon" package to handle detaching on Linux and Unix systems.
Supports writing pid files, socket pair based startup messaging, and
systemd notification on Linux.
utils/daemon/constants_linux.go [new file with mode: 0644]
utils/daemon/constants_linux_arm64.go [new file with mode: 0644]
utils/daemon/constants_unix.go [new file with mode: 0644]
utils/daemon/daemonize.go [new file with mode: 0644]
utils/daemon/pidfile.go [new file with mode: 0644]
utils/daemon/process_linux.go [new file with mode: 0644]
utils/daemon/process_unix.go [new file with mode: 0644]
utils/daemon/socket_pair.go [new file with mode: 0644]