From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: how to define extra configuration for Redis service? Date: Fri, 21 Feb 2020 18:34:22 +0100 Message-ID: <87tv3j6e01.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:38664) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5CCO-0002Mg-DV for guix-devel@gnu.org; Fri, 21 Feb 2020 12:34:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5CCN-0000Ud-4Q for guix-devel@gnu.org; Fri, 21 Feb 2020 12:34:48 -0500 Received: from ns13.heimat.it ([46.4.214.66]:43398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5CCM-0000UJ-Qj for guix-devel@gnu.org; Fri, 21 Feb 2020 12:34:47 -0500 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 1FFA43000D1 for ; Fri, 21 Feb 2020 17:34:44 +0000 (UTC) Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BMfFCPvvyXEQ for ; Fri, 21 Feb 2020 17:34:24 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.161.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 79B363000CA for ; Fri, 21 Feb 2020 17:34:24 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id D2EF1300A05 for ; Fri, 21 Feb 2020 18:34:23 +0100 (CET) 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-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Guix, I'd like to add extra configuration parameters to a redis server, this is a sample configuration (I could then use to add more config parameters): =2D-8<---------------cut here---------------start------------->8--- ;; Redis server (service redis-service-type (redis-configuration (config-file (plain-file "redis.conf" " bind 192.168.133.255 port 6379 dir /var/lib/redis daemonize no ")))) =2D-8<---------------cut here---------------end--------------->8--- Reading the redis-shepherd-service source code in gnu/services/databases.scm I thought that the config file I defined is going to replace the default one, but when I reconfigure the service I see the redis-server process is started like this: =2D-8<---------------cut here---------------start------------->8--- /gnu/store/5w6nlzd2nrns479whwcz7il5mgf5024s-redis-4.0.10/bin/redis-server 1= 27.0.0.1:6379 =2D-8<---------------cut here---------------end--------------->8--- I expected to see something like =2D-8<---------------cut here---------------start------------->8--- /gnu/store/5w6nlzd2nrns479whwcz7il5mgf5024s-redis-4.0.10/bin/redis-server /= gnu/store/...-redis.conf =2D-8<---------------cut here---------------end--------------->8--- with the content of redis.conf as defined above [1] Plase am I doing something wrong? Thanks! Gio' [1] the redis quickstart doc states: "In order to start Redis with a configuration file use the full path of the configuration file as first argument, like in the following example: redis-server /etc/redis.conf. " (https://redis.io/topics/quickstart) =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAl5QFJ4ACgkQ030Op87M ORJ7PxAAm6oSJelWeT2WohFzwpy+3C6X8F9sCkODWz6eozNXnl1fU/i9v2UzvOyr TjtIL2CyafNJ63NrxliuiR9gfQAndkfjH9P9874gIUZIHGTzWHkcJDv1h44xSb+K dRpaxrrWzlFD3IW0KE4Z50heBb30XaV3sDhbwjGkriFswbdroLAYBmFW6yl0fi02 WiZYRMU82JhMrHVVmuPXZbgftMulcIy60wozl88mKf2Hgrnin+N1EzlrT1Rd63tn nUzFjOC4YX1j7VTVSIWsEnNB2WDDbBi0zhxNmsf7B7REjM1x/Ew9e5c8lulnrlGe YD7cCIDjxdO6dZWFDRfVwQULWcD3NUHJSeY8oyssNBJ5ROiWK/0Y9xA8UEFOTqop DBxFkCnnIMbla40RuKt5Fq007jGtXUMmNd5LSI6+Ah0zBeZKrAkiWaR93VMxq9sr zmH8UtvkDrILceDzj1QEPiuwzCXkjYqJ/L+3hMEGZpa3Uypplu1BhwtMdJom+nA7 oNUCsMPIx9HeFnGAekCknlTIAUCvK3rnJAvu7pB5oiPTJyvYR/t/mpN+y1x3QXHp loPl0tZF6Stl2omqVVy17FwRGENoHqtDv5C/1iGkceyyyUmPFMeMs5h1TCkTNgN3 5npL2F8iD3vvzUDHbz9Zm4p6Yqn5MQrEqTqS/c3Sb93bk8sAdjk= =pRnT -----END PGP SIGNATURE----- --=-=-=--