forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
940df88eb2
commit
d64789528d
4309 changed files with 1327278 additions and 1001118 deletions
42
vendor/github.com/sevlyar/go-daemon/daemon_unix.go
generated
vendored
42
vendor/github.com/sevlyar/go-daemon/daemon_unix.go
generated
vendored
|
@ -11,6 +11,48 @@ import (
|
|||
"github.com/kardianos/osext"
|
||||
)
|
||||
|
||||
// A Context describes daemon context.
|
||||
type Context struct {
|
||||
// If PidFileName is non-empty, parent process will try to create and lock
|
||||
// pid file with given name. Child process writes process id to file.
|
||||
PidFileName string
|
||||
// Permissions for new pid file.
|
||||
PidFilePerm os.FileMode
|
||||
|
||||
// If LogFileName is non-empty, parent process will create file with given name
|
||||
// and will link to fd 2 (stderr) for child process.
|
||||
LogFileName string
|
||||
// Permissions for new log file.
|
||||
LogFilePerm os.FileMode
|
||||
|
||||
// If WorkDir is non-empty, the child changes into the directory before
|
||||
// creating the process.
|
||||
WorkDir string
|
||||
// If Chroot is non-empty, the child changes root directory
|
||||
Chroot string
|
||||
|
||||
// If Env is non-nil, it gives the environment variables for the
|
||||
// daemon-process in the form returned by os.Environ.
|
||||
// If it is nil, the result of os.Environ will be used.
|
||||
Env []string
|
||||
// If Args is non-nil, it gives the command-line args for the
|
||||
// daemon-process. If it is nil, the result of os.Args will be used.
|
||||
Args []string
|
||||
|
||||
// Credential holds user and group identities to be assumed by a daemon-process.
|
||||
Credential *syscall.Credential
|
||||
// If Umask is non-zero, the daemon-process call Umask() func with given value.
|
||||
Umask int
|
||||
|
||||
// Struct contains only serializable public fields (!!!)
|
||||
abspath string
|
||||
pidFile *LockFile
|
||||
logFile *os.File
|
||||
nullFile *os.File
|
||||
|
||||
rpipe, wpipe *os.File
|
||||
}
|
||||
|
||||
func (d *Context) reborn() (child *os.Process, err error) {
|
||||
if !WasReborn() {
|
||||
child, err = d.parent()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue