]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt Tramp's "run0" method
authorMichael Albinus <michael.albinus@gmx.de>
Wed, 10 Jul 2024 09:58:22 +0000 (11:58 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 11 Jul 2024 14:38:24 +0000 (16:38 +0200)
* doc/misc/tramp.texi (Inline methods):
* etc/NEWS: Adapt "run0" entry.

* lisp/net/tramp-sh.el (tramp-enable-run0-method): Adapt "run0"
arguments.

(cherry picked from commit 7de4dbea08f43bcbcfa0f6103356ed444af1a2c3)

doc/misc/tramp.texi
lisp/net/tramp-sh.el

index 2361683fa14ef61148cfabf6bd86dc042aa0e226..d7b9e7b17588895e4d2131ddb8b7c2fd9e5f3260 100644 (file)
@@ -892,9 +892,9 @@ a predefined timeout.
 @cindex method @option{run0}
 @cindex @option{run0} method
 
-This method is used on @code{systemd}-based hosts.  Internally, it
-uses the @code{systemd-run} command.  A @option{run0} connection is
-disabled after a predefined timeout as well.
+@c This requires systemd 256.  Check with 'systemd-run --version'.
+This method is used on @code{systemd}-based hosts.  A @option{run0}
+connection is disabled after a predefined timeout as well.
 
 This is an optional method, @pxref{Optional methods}.
 
index 3205c77210f2241de343fa159e6e4cda80322ab0..2c2bce75c4ea8ff5902691032c232fef6370846b 100644 (file)
@@ -509,8 +509,9 @@ The string is used in `tramp-methods'.")
   "Enable \"run0\" method."
  (add-to-list 'tramp-methods
               `("run0"
-                (tramp-login-program        "systemd-run")
-                (tramp-login-args           (("--uid" "%u") ("-t") ("%l")))
+                (tramp-login-program        "run0")
+                (tramp-login-args           (("--user" "%u")
+                                            ("--background" "''") ("%l")))
                 (tramp-remote-shell         ,tramp-default-remote-shell)
                 (tramp-remote-shell-args    ("-c"))
                 (tramp-connection-timeout   10)