title: Redis Startup issues on Debian Stretch (9)
body: <p>Actually I'm on my way to switch to debian 9 for the new production servers of the company and want to provision them with ansible. So far, everything works fine, but now I'm stuck with redis-server.</p>
  
  <p>By default, Debian 9 comes with redis version 3.2. I'm installing the package via <code>apt-get install redis-server</code>. After that, redis starts up as a daemon in the background. Now I want to apply some custom configuration, like binding to 2 different IPs (127.0.0.1 and the server IP).</p>
  
  <p>After changing this as well as the <code>daemonize</code> option (to <code>yes</code>), redis is no longer willing to start in the background. Whenever doing either <code>service redis-server start</code> or <code>/etc/init.d/redis-server start</code>, the command just stucks.</p>
  
  <p><code>journalctl -xe</code> tells me, that the pid file is not readable (<code>redis-server.service: PID file /var/run/redis/redis-server.pid not readable (yet?) after start-post: No such file or directory</code>) even though it should be created according to init.d script:</p>
  
  <pre><code>start)
      echo -n "Starting $DESC: "
      mkdir -p $RUNDIR
      touch $PIDFILE
      chown redis:redis $RUNDIR $PIDFILE
      chmod 755 $RUNDIR
  </code></pre>
  
  <p>After all, I can see, that both <code>service redis-server start</code> and <code>/etc/init.d/redis-server</code> are starting the server and I'm also able to connect to the server via <code>redis-cli</code>. But the damn process stucks.</p>
  
  <p>Can anyone help? If you need further information, just let me know. I'll provide what ever possible if this solves the problem!</p>
  
  <p>best
  Chris</p>