You need to add the following to your /etc/systemd/system/redis-server unit file:
ReadWriteDirectories=-/var/lib/redis
Note that /var/lib/redis
is the default, but if in your /etc/redis/redis.conf
you set a different dir
config option, you will need to set ReadWriteDirectories
to that.