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_dup3.go generated vendored Normal file
View File

@@ -0,0 +1,13 @@
//go:build linux && (riscv64 || arm64)
// +build linux
// +build riscv64 arm64
package daemon
import "syscall"
func syscallDup(oldfd int, newfd int) (err error) {
// linux_arm64 platform doesn't have syscall.Dup2
// so use the nearly identical syscall.Dup3 instead.
return syscall.Dup3(oldfd, newfd, 0)
}