Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270838 - net-misc/memcached should listen on different UDP ports when muliple memcached servers are running
Summary: net-misc/memcached should listen on different UDP ports when muliple memcache...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 16:31 UTC by bay
Modified: 2009-05-26 00:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bay 2009-05-22 16:31:08 UTC
to fix this, please, change in /etc/init.d/memcached:
before:
        /sbin/start-stop-daemon --start --pidfile "${PIDFILE}" \
                --exec "${MEMCACHED_BINARY}" \
                                --startas "${MEMCACHED_BINARY}" -- \
                -d -p ${PORT} ${c_LISTENON} -m ${MEMUSAGE} \
                -c ${MAXCONN} -u ${MEMCACHED_RUNAS} -P "${PIDFILE}" \
                                ${MISC_OPTS}
after:
        /sbin/start-stop-daemon --start --pidfile "${PIDFILE}" \
                --exec "${MEMCACHED_BINARY}" \
                                --startas "${MEMCACHED_BINARY}" -- \
                -d -p ${PORT} -U ${PORT} ${c_LISTENON} -m ${MEMUSAGE} \
                -c ${MAXCONN} -u ${MEMCACHED_RUNAS} -P "${PIDFILE}" \
                                ${MISC_OPTS}


Reproducible: Always

Steps to Reproduce:
BAYsGentooNotebook conf.d # /etc/init.d/memcached2 start
memcached2          |* Starting memcached (memcached2)...
memcached2          |* You should edit /etc/conf.d/memcached.memcached2 and specify an address to listen on.
memcached2          |* Listening on any address (check your firewall!)                                          [ ok ]
BAYsGentooNotebook conf.d # netstat -tlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:11311                 *:*                     LISTEN     564/memcached
BAYsGentooNotebook conf.d # netstat -ulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 *:bootpc                *:*                                6367/dhcpcd
udp        0      0 *:59845                 *:*                                15206/sim
udp        0      0 *:11211                 *:*                                564/memcached

Actual Results:  
the memcached server always listen 11211 UDP port

Expected Results:  
memcached should listen different UDP ports
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-05-26 00:03:23 UTC
Fixed in 1.3.3-r2