[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#41018] [PATCH v2 try 2] gnu: Add AutoSSH service.
From: |
Oleg Pykhalov |
Subject: |
[bug#41018] [PATCH v2 try 2] gnu: Add AutoSSH service. |
Date: |
Tue, 05 May 2020 15:33:12 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
pinoaffe <address@hidden> writes:
> * doc/guix.texi: Add documentation.
> * gnu/services/ssh.scm (<autossh-configuration>): New record type.
> (mpd-service-type): New service type.
> ---
Not mpd-service-type. :-) Changed to:
--8<---------------cut here---------------start------------->8---
gnu: Add AutoSSH service.
* gnu/services/ssh.scm (<autossh-configuration>): New record type.
(autossh-service-type): New variable.
(autossh-service-activation, autossh-file-name): New procedures.
* doc/guix.texi (Networking Services): Document this.
--8<---------------cut here---------------end--------------->8---
[…]
> +@lisp
> +(autossh (autossh-configuration
> + (user "pino")
> + (ssh-options (list "-T" "-N" "-L" "8081:localhost:8081"
> "remote.net"))))
> +@end lisp
> +@end deffn
…
> +(define* (autossh-service #:optional (config (autossh-configuration)))
> + "Run autossh with the given @var{config}, a @code{<autossh-configuration>}
> +object."
> + (service autossh-service-type config))
> +
Procedures like this ‘autossh-service’ are deprecated. I removed it and
updated documentation accordingly. Pushed to master with those changes.
Oleg.
signature.asc
Description: PGP signature