From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Zancanaro Subject: Re: Services can now have a default value Date: Thu, 20 Apr 2017 00:42:00 +1000 Message-ID: <877f2go3wn.fsf@zancanaro.id.au> References: <87shl9qo7h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0qoA-0004OZ-BD for guix-devel@gnu.org; Wed, 19 Apr 2017 10:42:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0qo5-0001He-F3 for guix-devel@gnu.org; Wed, 19 Apr 2017 10:42:14 -0400 In-reply-to: <87shl9qo7h.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I have a question related to this, but about a broader issue. On Sat, Apr 15 2017, Ludovic Court=C3=A8s wrote: > (service openssh-service-type) Is this supposed to be the preferred way to add a service to your operating system? Or, put another way, as a service writer: should I consider a *-service-type to be sufficient to complete the work of creating a service? Looking at various services that we have defined at the moment (according to what is documented), most services have a procedure (ie. *-service), and maybe also a *-service-type. For example, in "Database Services" we have postgresql-service and mysql-service, with no corresponding *-service-type. But then we have redis-service-type without a *-service to go with it. I wonder if we would be better off creating *-service procedures for each *-service-type and documenting them as the canonical way to create services. That way we could handle things like default arguments through the usual scheme mechanisms, rather than our own special case. Carlo --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEwWt2bKTcV+mIZ20oCShLEsLiKqIFAlj3dzgACgkQCShLEsLi KqKG7Af+K9cgTGKx4jm+sRtsjt04ngYvJnxd+NjSHX3amoeZDgAFHztEFFCG4VB2 TFAl+QqPiIe7vD9+ihe1azDV3zDAIEQ4yDhwo93c1j1XsT9rNvEmjZ3N6NVL5+WP ZUvtrZecIjUOouXPGRscchOSfmgrygJAuzNp/Iocxshjb1xIshGPWZjmJOf4eF6a hTY+IRIy1ePS4wJFLdw48+O7z3TVJjIyM5iSkd7K97qb0WANUbbYwrtWJSpdFAf0 TkfWfIfA662VzdiDU1uc32FCJh/dlzHcnu7cKinB0skFxcl5YjS7tqz8ps6sCXP7 Dh2ofD5bzS0fDZNglwwn9LGCMMNXvg== =pC/8 -----END PGP SIGNATURE----- --=-=-=--