guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] services: Add opensmtpd service.


From: Ludovic Courtès
Subject: Re: [PATCH] services: Add opensmtpd service.
Date: Fri, 25 Nov 2016 23:58:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

宋文武 <address@hidden> skribis:

> * gnu/services/mail.scm (<opensmtpd-configuration>): New record type.
> (%default-opensmtpd-config-file, %opensmtpd-accounts): New variables.
> (opensmtpd-shepherd-service, opensmtpd-activation): New procedures.
> (opensmtpd-service-type): New variable.
> * doc/guix.texi (Mail Services): Document it.

[...]

> address@hidden
> +(service opensmtpd-service-type
> +         (opensmtpd-configuration
> +           (config-file "/etc/smtpd.conf")))

Better suggest:

  (config-file (local-file "./my-smtpd.conf"))

The above example would work but would not be referentially transparent
(which would prevent rollback, etc.)

> address@hidden {Data Type} opensmtpd-configuraiton
> +Data type regresenting the configuraiton of opensmtpd.
                                     ^^
“configuration of OpenSMTPD”.

OK with these changes, thank you!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]