anchor.diff:  # Short-Description: start and stop memcached
   ### END INIT INFO
   
  -# Standard LSB functions
  -#. /lib/lsb/init-functions
  -
  -# Source function library.
  -. /etc/init.d/functions
  +## Source function library.
  +#. /etc/rc.d/init.d/functions
  +# Source LSB function library.
  +if [ -r /lib/lsb/init-functions ]; then
  +    . /lib/lsb/init-functions
  +else
  +    echo 'Could not find necessary /lib/lsb/init-functions'
  +    exit 1
  +fi
   
   RETVAL=0
   prog="memcached"
  
positive.code:         chown <%= @user %> /var/run/memcached
      fi
  
          daemon --pidfile /var/run/memcached/memcached_<%= @instance %>.pid /usr/bin/memcached -d \
            -P /var/run/memcached/memcached_<%= @instance %>.pid \
            -m <%= @memory %> \
            -U <%= @udp_port %> \
  
negative.code:         echo
          if [ $RETVAL -eq 0 ] ; then
              rm -f <%= @lock_dir %>/memcached
              rm -f /var/run/memcached/memcached_<%= @instance %>.pid
          fi
  }
  
  