@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}.
+++
*** New optional connection method "run0".
-This connection method is similar to "sudo", but it uses the
-'systemd-run' program internally.
+This connection method is similar to "sudo", but it uses the 'systemd'
+framework internally.
+++
*** New connection methods "dockercp" and "podmancp".
"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)