title: upgrade redis 2.4.14 to redis 2.6.14, command "service redis start" always hangs
body: <p>I installed redis2.4.14 before. 
  Yestoday, I got redis2.6.14, and directly "cd redis-2.6.14/src ; make &amp;&amp; make install".
  and I removed dump.rdb and redis.log of redis-2.4.14.
  I also upgraded the configuration file to 2.6.14.
  I added redis to service when I installed redis-2.4.14.
  I execute command "service redis start", but it always hangs with no "ok" information.</p>
  
  <pre><code>[tys@localhost bin]# service redis start
  Starting redis-server: 
  </code></pre>
  
  <p>I can use redis nomally</p>
  
  <pre><code>[tys@localhost redis]# redis-cli
  redis 127.0.0.1:6379&gt; set name tys
  OK
  redis 127.0.0.1:6379&gt; get name
  "tys"
  </code></pre>
  
  <p>but if I type "ctrl + c" or "ctrl + z", "redis-cli" will hang on.</p>
  
  <p>when I reboot the system, linux boot process hangs on "Starting redis-server"
  (Sorry, I am too "young" to post image. <a href="https://groups.google.com/forum/#!topic/redis-db/iQnlyAAWE9Y" rel="nofollow">https://groups.google.com/forum/#!topic/redis-db/iQnlyAAWE9Y</a>)</p>
  
  <p>But I can ssh it.It's a virtual machine.
  There is no error in the redis.log.</p>
  
  <pre><code>[1420] 11 Aug 04:27:05.879 # Server started, Redis version 2.6.14
  [1420] 11 Aug 04:27:05.880 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
  [1420] 11 Aug 04:27:05.903 * DB loaded from disk: 0.023 seconds
  [1420] 11 Aug 04:27:05.903 * The server is now ready to accept connections on port 6379
  </code></pre>
  
  <p>Here is my redis init.d script :</p>
  
  <pre><code>#!/bin/bash
  #
  #redis - this script starts and stops the redis-server daemon
  #
  # chkconfig:   235 90 10 
  # description:  Redis is a persistent key-value database
  # processname: redis-server
  # config:      /etc/redis.conf
  # config:      /etc/sysconfig/redis
  # pidfile:     /var/run/redis.pid
  
  # Source function library.
  . /etc/rc.d/init.d/functions
  
  # Source networking configuration.
  . /etc/sysconfig/network
  
  # Check that networking is up.
  [ "$NETWORKING" = "no" ] &amp;&amp; exit 0
  
  redis="/usr/local/bin/redis-server"
  prog=$(basename $redis)
  
  REDIS_CONF_FILE="/etc/redis.conf"
  
  [ -f /etc/sysconfig/redis ] &amp;&amp; . /etc/sysconfig/redis
  
  lockfile=/var/lock/subsys/redis
  
  start() {
      [ -x $redis ] || exit 5
      [ -f $REDIS_CONF_FILE ] || exit 6
      echo -n $"Starting $prog: "
      daemon $redis $REDIS_CONF_FILE
      retval=$?
      echo
      [ $retval -eq 0 ] &amp;&amp; touch $lockfile
      return $retval
  }
  
  stop() {
      echo -n $"Stopping $prog: "
      killproc $prog -QUIT
      retval=$?
      echo
      [ $retval -eq 0 ] &amp;&amp; rm -f $lockfile
      return $retval
  }
  
  restart() {
      stop
      start
  }
  
  reload() {
      echo -n $"Reloading $prog: "
      killproc $redis -HUP
      RETVAL=$?
      echo
  }
  
  force_reload() {
      restart
  }
  
  rh_status() {
      status $prog
  }
  
  rh_status_q() {
      rh_status &gt;/dev/null 2&gt;&amp;1
  }
  
  
  case "$1" in
      start)
          rh_status_q &amp;&amp; exit 0
          $1
          ;;
      stop)
          rh_status_q || exit 0
          $1
          ;;
      restart|configtest)
          $1
          ;;
      reload)
          rh_status_q || exit 7
          $1
          ;;
      force-reload)
          force_reload
          ;;
      status)
          rh_status
          ;;
      condrestart|try-restart)
          rh_status_q || exit 0
          ;;
      *)
          echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
          exit 2
  esac
  </code></pre>