Adapt Tramp's "run0" method
* doc/misc/tramp.texi (Inline methods): * etc/NEWS: Adapt "run0" entry. * lisp/net/tramp-sh.el (tramp-enable-run0-method): Adapt "run0" arguments.
This commit is contained in:
parent
871585db4c
commit
7de4dbea08
3 changed files with 8 additions and 7 deletions
|
@ -892,9 +892,9 @@ a predefined timeout.
|
||||||
@cindex method @option{run0}
|
@cindex method @option{run0}
|
||||||
@cindex @option{run0} method
|
@cindex @option{run0} method
|
||||||
|
|
||||||
This method is used on @code{systemd}-based hosts. Internally, it
|
@c This requires systemd 256. Check with 'systemd-run --version'.
|
||||||
uses the @code{systemd-run} command. A @option{run0} connection is
|
This method is used on @code{systemd}-based hosts. A @option{run0}
|
||||||
disabled after a predefined timeout as well.
|
connection is disabled after a predefined timeout as well.
|
||||||
|
|
||||||
This is an optional method, @pxref{Optional methods}.
|
This is an optional method, @pxref{Optional methods}.
|
||||||
|
|
||||||
|
|
4
etc/NEWS
4
etc/NEWS
|
@ -1329,8 +1329,8 @@ Android.
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** New optional connection method "run0".
|
*** New optional connection method "run0".
|
||||||
This connection method is similar to "sudo", but it uses the
|
This connection method is similar to "sudo", but it uses the 'systemd'
|
||||||
'systemd-run' program internally.
|
framework internally.
|
||||||
|
|
||||||
+++
|
+++
|
||||||
*** New connection methods "dockercp" and "podmancp".
|
*** New connection methods "dockercp" and "podmancp".
|
||||||
|
|
|
@ -509,8 +509,9 @@ The string is used in `tramp-methods'.")
|
||||||
"Enable \"run0\" method."
|
"Enable \"run0\" method."
|
||||||
(add-to-list 'tramp-methods
|
(add-to-list 'tramp-methods
|
||||||
`("run0"
|
`("run0"
|
||||||
(tramp-login-program "systemd-run")
|
(tramp-login-program "run0")
|
||||||
(tramp-login-args (("--uid" "%u") ("-t") ("%l")))
|
(tramp-login-args (("--user" "%u")
|
||||||
|
("--background" "''") ("%l")))
|
||||||
(tramp-remote-shell ,tramp-default-remote-shell)
|
(tramp-remote-shell ,tramp-default-remote-shell)
|
||||||
(tramp-remote-shell-args ("-c"))
|
(tramp-remote-shell-args ("-c"))
|
||||||
(tramp-connection-timeout 10)
|
(tramp-connection-timeout 10)
|
||||||
|
|
Loading…
Add table
Reference in a new issue