Add ability to daemonize program, update sample config, README.md, add .gitignore

This commit is contained in:
eleksir
2024-03-13 20:08:08 +03:00
parent 74eaf3bd75
commit 4d04731aeb
35 changed files with 1263 additions and 17 deletions

13
vendor/github.com/sevlyar/go-daemon/syscall_dup.go generated vendored Normal file
View File

@@ -0,0 +1,13 @@
//go:build (!linux || !arm64) && (!linux || !riscv64) && !windows && go1.7
// +build !linux !arm64
// +build !linux !riscv64
// +build !windows
// +build go1.7
package daemon
import "golang.org/x/sys/unix"
func syscallDup(oldfd int, newfd int) (err error) {
return unix.Dup2(oldfd, newfd)
}