Hi all,

Using apt-get, you can automagically install memcached. It's great as
it starts a daemon and that daemon will start on boot.

Though for Christmas I need two daemons running on different ports:
11211 and 11212.

I've duplicated the following files and tweaked them, so a second
daemon can start.

/etc/init.d/memcached -> /etc/init.d/memcached_11212
/etc/memcached.conf -> /etc/memcached_11212.conf
/usr/share/memcached/scripts/start-memcached ->
/usr/local/share/memcached/scripts/start-memcached

Using update-rc.d the above daemon starts on boot as well (great).

Now if memcached has a security update, apt-get will restart the
original packaged daemon, not my second instance. How can I make my
second instance upgrade friendly?

Disclaimer: My new found obsession is upgrade friendliness, so my
intentions are not strictly memcached related, but it's the simplest
example I can think of.

Cheers.

-- 
Simon Males
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to