2021-08-18 11:07:09 +00:00
|
|
|
// Daemonization stub for non-Unix platforms (implementation)
|
|
|
|
|
|
|
|
//go:build windows || plan9 || js
|
|
|
|
// +build windows plan9 js
|
|
|
|
|
|
|
|
package daemonize
|
|
|
|
|
|
|
|
import (
|
2021-11-04 10:12:57 +00:00
|
|
|
"fmt"
|
2021-08-18 11:07:09 +00:00
|
|
|
"os"
|
|
|
|
"runtime"
|
|
|
|
)
|
|
|
|
|
|
|
|
// StartDaemon runs background twin of current process.
|
|
|
|
func StartDaemon(args []string) (*os.Process, error) {
|
2021-11-04 10:12:57 +00:00
|
|
|
return nil, fmt.Errorf("background mode is not supported on %s platform", runtime.GOOS)
|
2021-08-18 11:07:09 +00:00
|
|
|
}
|