* how to define extra configuration for Redis service?
@ 2020-02-21 17:34 Giovanni Biscuolo
0 siblings, 0 replies; only message in thread
From: Giovanni Biscuolo @ 2020-02-21 17:34 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 1700 bytes --]
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):
--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
"))))
--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:
--8<---------------cut here---------------start------------->8---
/gnu/store/5w6nlzd2nrns479whwcz7il5mgf5024s-redis-4.0.10/bin/redis-server 127.0.0.1:6379
--8<---------------cut here---------------end--------------->8---
I expected to see something like
--8<---------------cut here---------------start------------->8---
/gnu/store/5w6nlzd2nrns479whwcz7il5mgf5024s-redis-4.0.10/bin/redis-server /gnu/store/...-redis.conf
--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)
--
Giovanni Biscuolo
Xelera IT Infrastructures
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-21 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 17:34 how to define extra configuration for Redis service? Giovanni Biscuolo
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).