mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +01:00
e43b5ce5e5
This is possible now that we no longer support go1.12 and brings rclone into line with standard practices in the Go world. This also removes errors.New and errors.Errorf from lib/errors and prefers the stdlib errors package over lib/errors.
18 lines
382 B
Go
18 lines
382 B
Go
// Daemonization stub for non-Unix platforms (implementation)
|
|
|
|
//go:build windows || plan9 || js
|
|
// +build windows plan9 js
|
|
|
|
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)
|
|
}
|