title: Redis Daemon not creating a PID file
body: <p>The Redis startup script is supposed to create a pid file at startup, but I've confirmed all the settings I can find, and no pid file is ever created.</p>
  
  <p>I installed redis by: </p>
  
  <pre><code>$ yum install redis
  $ chkconfig redis on
  $ service redis start
  </code></pre>
  
  <p>In my config file (/etc/redis.conf) I checked to make sure these were enabled: </p>
  
  <pre><code>daemonize yes
  pidfile /var/run/redis/redis.pid
  </code></pre>
  
  <p>And in the startup script (/etc/init.d/redis) there is:</p>
  
  <pre><code>exec="/usr/sbin/$name"
  pidfile="/var/run/redis/redis.pid"
  REDIS_CONFIG="/etc/redis.conf"
  
  [ -e /etc/sysconfig/redis ] &amp;&amp; . /etc/sysconfig/redis
  
  lockfile=/var/lock/subsys/redis
  
  start() {
      [ -f $REDIS_CONFIG ] || exit 6
      [ -x $exec ] || exit 5
      echo -n $"Starting $name: "
      daemon --user ${REDIS_USER-redis} "$exec $REDIS_CONFIG"
      retval=$?
      echo
      [ $retval -eq 0 ] &amp;&amp; touch $lockfile
      return $retval
  }
  
  stop() {
      echo -n $"Stopping $name: "
      killproc -p $pidfile $name
      retval=$?
      echo
      [ $retval -eq 0 ] &amp;&amp; rm -f $lockfile
      return $retval
  }
  </code></pre>
  
  <p>These are the settings that came by default with the install. Any idea why no pid file is created? I need to use it for Monit.
  (The system is RHEL 6.4 btw)</p>