Bug 796893 - distcache - missing configuration variable "server"
Summary: distcache - missing configuration variable "server"
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: distcache
Version: 5.8
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: ---
Assignee: Joe Orton
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-23 19:54 UTC by Leon Fauster
Modified: 2013-03-13 16:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-13 16:23:29 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Leon Fauster 2012-02-23 19:54:22 UTC
=================================================================
Description of problem:
=================================================================


dc_server can not be configured (via /etc/sysconfig/distcache) to listen on specific interface (e.g. 127.0.0.1)


=================================================================
Version-Release number of selected component (if applicable):
=================================================================

Version     : 1.4.5
Release     : 14.1 



=================================================================
How reproducible:
=================================================================

the /etc/init.d/dc_server script only uses the port variable


=================================================================
How to solve this:
=================================================================

add the corresponding variables like

diff -u  /etc/init.d/dc_server.org /etc/init.d/dc_server
--- /etc/init.d/dc_server.org	2012-02-23 20:40:06.000000000 +0100
+++ /etc/init.d/dc_server	2012-02-23 20:38:12.000000000 +0100
@@ -17,13 +17,14 @@
 
 port=${PORT-5555}
 sessions=${SESSIONS-3000}
+server=${SERVER-localhost}:${port}
 
 prog=dc_server
 RETVAL=0
 runas=distcache
 dc_server=/usr/bin/dc_server
 
-OPTIONS="-daemon -pidfile /var/run/dc_server.pid -user ${runas} -sessions ${sessions} -listen IP:${port}"
+OPTIONS="-daemon -pidfile /var/run/dc_server.pid -user ${runas} -sessions ${sessions} -listen IP:${server}"
 



=================================================================  
Implications:
=================================================================

dc_client uses the same variables, therefore no implications.
dc_client and dc_server should be used exclusively anyway.

Comment 1 Joe Orton 2012-04-12 20:16:40 UTC
Thanks for the patch!

Comment 2 RHEL Program Management 2012-06-12 01:32:00 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 3 Joe Orton 2013-03-13 16:23:29 UTC
There are no plans to add this change in future updates for Red Hat Enterprise Linux 5 currently; we are looking towards migration away from distcache towards memcached in future major versions.  Please contact Red Hat support if you have further issues or questions.


Note You need to log in before you can comment on or make changes to this bug.