mirror of
https://github.com/rclone/rclone.git
synced 2025-08-18 09:30:03 +02:00
cmd/serve: add serve docker command (#5415)
Fixes #4750 Co-authored-by: Ivan Andreev <ivandeex@gmail.com>
This commit is contained in:
committed by
Ivan Andreev
parent
221dfc3882
commit
daf449b5f2
17
cmd/serve/docker/systemd.go
Normal file
17
cmd/serve/docker/systemd.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// +build linux,!android
|
||||
|
||||
package docker
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/coreos/go-systemd/activation"
|
||||
"github.com/coreos/go-systemd/util"
|
||||
)
|
||||
|
||||
func systemdActivationFiles() []*os.File {
|
||||
if util.IsRunningSystemd() {
|
||||
return activation.Files(false)
|
||||
}
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user