Skip to content

Conversation

dualmi
Copy link

@dualmi dualmi commented Apr 7, 2021

Makes readable /etc/redis/redis.conf and allows to configure redis snap with it.

Additional systemd modifications requred:

  1. Run systemctl edit snap.redis.server
  2. Add following code to provide config path to redis executable (empty ExecStart required)
[Service]
ExecStart=
ExecStart=/usr/bin/snap run redis.server /etc/redis/redis.conf

@yossigo
Copy link
Member

yossigo commented Apr 13, 2021

@keir-ru Thanks for this PR, I have a few comments:

  • Perhaps it will be a better idea to make all of /etc/redis readable? Depending on deployment, there could be other files as well.
  • While at it, what about writable configuration files? For example, acl file, cluster nodes.conf, sentinel.conf or even redis.conf when CONFIG REWRITE is used.
  • I think it would be a good idea to update the README.md to add a section on running the snap package with systemd and include a more detailed example.

adamiBs pushed a commit to adamiBs/redis-snap that referenced this pull request May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants