mirror of
https://github.com/rclone/rclone.git
synced 2025-06-05 12:00:19 +08:00
cmd: refactor and use sysdnotify in more commands
* cmd: refactor and use sysdnotify in more commands Fixes #5117
This commit is contained in:
@ -13,6 +13,7 @@ import (
|
||||
"github.com/rclone/rclone/fs"
|
||||
"github.com/rclone/rclone/fs/config/flags"
|
||||
"github.com/rclone/rclone/fs/rc"
|
||||
"github.com/rclone/rclone/lib/systemd"
|
||||
"github.com/rclone/rclone/vfs"
|
||||
"github.com/rclone/rclone/vfs/vfsflags"
|
||||
"github.com/spf13/cobra"
|
||||
@ -135,6 +136,7 @@ provided by OpenSSH in this case.
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer systemd.Notify()()
|
||||
s.Wait()
|
||||
return nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user