Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

516 B
Raw Blame
//go:build !unix || aix

// Package daemonize provides daemonization stub for non-Unix platforms.
package daemonize

import (
	"fmt"
	"os"
	"runtime"
)

var errNotSupported = fmt.Errorf("daemon mode is not supported on the %s platform", runtime.GOOS)

// StartDaemon runs background twin of current process.
func StartDaemon(args []string) (*os.Process, error) {
	return nil, errNotSupported
}

// Check returns non nil if the daemon process has died
func Check(daemon *os.Process) error {
	return errNotSupported
}