mirror of
https://github.com/rclone/rclone
synced 2025-02-24 18:35:51 +01:00

This patch will: - add --daemon-wait flag to control the time to wait for background mount - remove dependency on sevlyar/go-daemon and implement backgrounding directly - avoid setsid during backgrounding as it can result in race under Automount - provide a fallback PATH to correctly run `fusermount` under systemd as it runs mount units without standard environment variables - correctly handle ^C pressed while background process is being setting up
12 lines
240 B
Go
12 lines
240 B
Go
// Daemonization stub for non-Unix platforms (common definitions)
|
|
|
|
//go:build windows || plan9 || js
|
|
// +build windows plan9 js
|
|
|
|
package fs
|
|
|
|
// IsDaemon returns true if this process runs in background
|
|
func IsDaemon() bool {
|
|
return false
|
|
}
|