Your message dated Mon, 02 Nov 2015 22:09:35 +0000
with message-id <[email protected]>
and subject line Re: Bug#803788: redis-server starting via systemd fix
has caused the Debian Bug report #803788,
regarding redis-server starting via systemd fix
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
803788: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803788
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: redis-server
Version: 2.8.17-1+deb8u1

Debian GNU/Linux 8.2 Jessie amd64 distribution

I am use redis-server and after upgrade to Jessie have a small problem with starting redis-server software via systemd. By default at redis.conf path to pid file set /var/run/redis/redis.pid. But redis-server starts with permissions redis:redis and have not permissions to write /var/run directory. For fix it you must set additional options in systemd unit:

--- redis.orig/redis-server.service   2015-06-05 16:12:00.000000000 +0300
+++ redis/redis-server.service        2015-11-02 21:25:25.976182055 +0300
@@ -4,6 +4,8 @@

 [Service]
 Type=forking
+PermissionsStartOnly=true
+RuntimeDirectory=redis
 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
 ExecStop=/usr/bin/redis-cli shutdown
 Restart=always

--- End Message ---
--- Begin Message ---
Version: 2:2.8.17-1+deb8u2

Hi,
 
> redis-server starts with permissions redis:redis and have not 
> permissions to write /var/run directory. For fix it you must set 
> additional options in systemd unit:

A better solution is to ensure /var/run/redis exists rather than
decrease security to ensure it can create it. I actually uploaded a fix
for this on Friday and it will appear in next point release:

  https://tracker.debian.org/news/722981

See https://bugs.debian.org/803233 for more details. Closing this bug
accordingly but thanks for the report.

(I also highly recommend you use the version in -backports - whilst the
version number bump might look scary but it has a lot of misc bug
fixes.)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-

--- End Message ---

Reply via email to