On Wed, 2 Mar 2011, David Mart?nez Moreno wrote:
El 3/2/11 1:49 PM, Jon Daley escribi?:
Package: memcached
Version: 1.4.5-1
Severity: wishlist

I like your start-memcached wrapper script, but it would be good to have the configuration
and pidfile specified as a parameter rather than hard-coded in the script.

I want to be able to run memcached in a shared hosting environment, so I copied /etc/init.d/memcached, /etc/memcached.conf and /usr/share/memcached/scripts/start-memcached to versions with<username> as the suffix, and then can run multiple memcacheds using sockets,
and giving each user his own memcached.

It would be nice to not have to copy the wrapper script (I realize I can not use the /etc/memcached.conf script at all, and just put all options in /etc/init.d/memcached-mine), but the wrapper method is nice.

What do you propose, then? Adding that into the /etc/default/memcached, perhaps? Honestly, right now I don't see an easy solution for this, and I don't know if there are a lot of users out there that could benefit from that.

I don't have a feel for the number of users that would care about this - it is probably small, since I run into a similar problem with other packages, where it is sort of hard to run multiple copies of the same software. (spamassassin's spamd, sshd, and mysql are examples of ones that I currently have copies of the init.d files) And it is sort of a pain, but I guess what makes memcached different is that I didn't just need to modify files in /etc, but also /usr.

/etc/default/ is a fine place to put it. I did see (after the init.d script wasn't restarting the right daemon) that the pid file is defined in two places, and that would be nice to be shrunk down to one, and if you fixed that with /etc/default settings, then the .conf file would be relatively easy to add at the same time.

I do wonder if memcached in a multi-user environment will become more popular, and so either sockets or sasl (I didn't look into how sasl works - does it allow for multiple users to use memcached without seeing each other's data?) will become necessary. And users will presumably want a way to have multiple memcacheds running on the same server.


--
Jon Daley
http://jon.limedaley.com
~~
Feeling like a one legged man at a butt kicking
  contest is not a fun place to be.
-- Pam Martin, original source unknown



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to