Subject: [bug#41018] [PATCH v2 try 2] gnu: Add AutoSSH service.

From: Oleg Pykhalov <[email-masked]>
Date: Tue, 05 May 2020 15:33:12 +0300

pinoaffe <[email-masked]> 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.