hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : start-stop-daemon procedure for memcached?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

start-stop-daemon procedure for memcached?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-07-2006, 12:58 AM
Teckinno Teckinno is offline
Junior Guru Wannabe
 
Join Date: Jul 2006
Posts: 73

start-stop-daemon procedure for memcached?


Hi,

I'm on a shared host. So far I installed fine PHP with APC and memcache.
I can start the daemon from shell and execute commands from web pages with no problems.

However, I'm concerned with one aspect of the shared hosts.
I manually started the daemon:
memcached -d -m 64 -l 127.0.0.1 -p 11211

I'm sure it will come soon the day when the Apache server will be restarted and my process will be gone, breaking my site (memcached functions are used in pages).

I'm not sure in what file I need to insert the start command for memcached... .bashrc or .bash_profile one?
I was thinking also to run a cronjob every 5min with start-stop-daemon... but that's really not efficient, IMO.

What I want to do is this:
When Apache restarts, the memcached command is issued automatically, while read from a file, etc.
Please keep in mind that I'm on a shared account, I cannot create a user to execute this command or play with any rc.local files.
I only have access to .bashrc or .bash_profile files, related to unix commands.

If you have questions about the actual config, please ask.
Thank you for your help.

Reply With Quote


Sponsored Links
  #2  
Old 08-07-2006, 01:17 AM
foobic foobic is offline
Community Liaison 2.0
 
Join Date: Feb 2005
Location: Australia
Posts: 5,107
I can't imagine any shared host will allow you to run your own copy of memcached. What you need is a VPS.

__________________
Chris

"Learn from the mistakes of others. You can never live long enough to make them all yourself." - Groucho Marx

Reply With Quote
  #3  
Old 08-07-2006, 07:36 AM
eth00 eth00 is offline
Web Hosting Master
 
Join Date: Apr 2003
Location: NC
Posts: 2,911
Aside from the point of your shared host may not want you to be doing this you could write a crontab script that checks if it is running and if not go and and start it.

__________________
John W
www.eth0.us

Reply With Quote
Sponsored Links
  #4  
Old 08-07-2006, 10:57 AM
Teckinno Teckinno is offline
Junior Guru Wannabe
 
Join Date: Jul 2006
Posts: 73
Thank you the information posted.
I can run cron jobs on my host, could you guys give me a script example?

Reply With Quote
  #5  
Old 08-07-2006, 01:23 PM
TheVoice TheVoice is offline
Web Hosting Master
 
Join Date: Oct 2002
Posts: 702
Apache being restarted has nothing to do with Memcached. Its a seperate process. Your host my have a problem with you running it since its a long running process so you may want to check with them first.

__________________
ServerMatingProject.com
The World's first server mating experiment
We give new meaning to I/O intensive and hot swap

Reply With Quote
  #6  
Old 08-07-2006, 05:04 PM
Teckinno Teckinno is offline
Junior Guru Wannabe
 
Join Date: Jul 2006
Posts: 73
Thank you for the process tip, TheVoice. I wanted to make sure the memcached process is not killed if Apache is restarted.
About the host, I will follow your advice and will contact them, again.
It's been one week I run memcached daemon at 64MB only.

I know for sure they allow me to run APC 3.1.10 (set at 64MB also) because I showed them how you can enable it on their shared host.
I searched like crazy on Google until I found all answers to install APC and memcached daemon in a shared environment.

That's how I found this website...

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Jelastic PaaS Moves into the Netherlands with Info.nl Partnership Web Hosting News 2013-03-26 16:13:04
Jelastic Launches Commercially in Brazil, Offers Portuguese Support Web Hosting News 2013-02-20 16:53:26
Web Host SingleHop Launches Automated Security Service for Dedicated, Cloud Servers Web Hosting News 2013-01-07 14:20:53
Web Host Nexcess Launches WordPress Platform for Blog Hosting Web Hosting News 2011-11-14 17:56:42
Web Host Amazon Web Services Launches ElastiCache Service Web Hosting News 2011-08-23 17:53:00


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?