func Restart(ctx context.Context, unit string, opts Options) error {
	var args = []string{"restart", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	_, _, _, err := execute(ctx, args)
	return err
}
// Stop and then start one or more units specified on the command line.
// If the units are not running yet, they will be started.
Stop and then start one or more units specified on the command line.
If the units are not running yet, they will be started.
// Stop and then start one or more units specified on the command line . // If the units are not running yet they will be started .
func Restart(ctx context.Context, unit string, opts Options) error {
	var args = []string{"restart", "--system", unit}
	if opts.UserMode {
		args[1] = "--user"
	}
	_, _, _, err := execute(ctx, args)
	return err
}
func Restart ( ctx context . Context , unit string , opts Options ) error { var args = [ ] string { " " , " " , unit } if opts . UserMode { args [ 1 ] = " " } _ , _ , _ , err := execute ( ctx , args ) return err }
Stop and then start one or more units specified on the command line.
Stop and then start one or more units specified on the command line .