Hi Adrien,

> Modification on the existing systemd service file should be minimal.

Indeed, can you try with…

  --- a/debian/redis-server.service
  +++ b/debian/redis-server.service
  @@ -1,12 +1,12 @@
   [Unit]
  -Description=Advanced key-value store
  +Description=Advanced key-value store (%I)
   After=network.target
   Documentation=http://redis.io/documentation, man:redis-server(1)
   
   [Service]
   Type=forking
  -ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
  -PIDFile=/var/run/redis/redis-server.pid
  +ExecStart=/usr/bin/redis-server /etc/redis/redis-%i.conf
  +PIDFile=/var/run/redis/redis-server-%i.pid
   TimeoutStopSec=0
   Restart=always
   User=redis

We need to keep the "redis" namespacing to avoid conflicts with
sentinel :)

You'll have to also rename the file to be redis-server.service@ (nb.
with the the "@" appended).


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-

Reply via email to