cmd: refactor and use sysdnotify in more commands

* cmd: refactor and use sysdnotify in more commands

Fixes #5117
This commit is contained in:
eNV25
2023-09-04 17:32:04 +02:00
committed by GitHub
parent 6afd7088d3
commit ad724463a5
8 changed files with 46 additions and 27 deletions

View File

@ -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
})