1
mirror of https://github.com/rclone/rclone synced 2024-11-26 04:07:22 +01:00
rclone/lib/daemonize/daemon_other.go

17 lines
392 B
Go

//go:build windows || plan9 || js
// +build windows plan9 js
// Package daemonize provides daemonization stub for non-Unix platforms.
package daemonize
import (
"fmt"
"os"
"runtime"
)
// StartDaemon runs background twin of current process.
func StartDaemon(args []string) (*os.Process, error) {
return nil, fmt.Errorf("background mode is not supported on %s platform", runtime.GOOS)
}