[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Having some issues with memcached.

From: Alex Shagiev
Subject: Re: Having some issues with memcached.
Date: Mon, 14 May 2007 20:01:01 -0400

Does the user running monit have read,write to your /var/run/ file?
Alex Shagiev
Prime IT

----- Original Message -----
From: "RDX _" address@hidden
Sent: 05/14/2007 06:54 PM
To: address@hidden
Subject: Having some issues with memcached.

I'm trying to get memcached to start with monit, however despite my best
efforts, i cannot get it to recognize the PIDfile.

- I'm simply running the commandline:
monit -v start memcached

- i have this in my config file for memcached:
    check process memcached
    with pidfile /var/run/
    start program = "/etc/init.d/memcached start"
    stop program =  "/etc/init.d/memcached stop"
    if failed host port 11211 then restart

- my script for memcached looks like this:
start() {
       /usr/local/bin/memcached -u root -d -P /var/run/
stop() {
       killall -9 memcached
       if [ $? -eq 0 ]
               rm -f /var/run/
# See how we were called.
case "$1" in
       echo $"Usage: $prog {start|stop|restart}"
       exit 1
exit $?

- i'm getting this output:
monit: pidfile '/var/run/' does not exist
monit: pidfile '/var/run/' does not exist
'memcached' start: /etc/init.d/memcached
monit: pidfile '/var/run/' does not exist
monit: pidfile '/var/run/' does not exist
'memcached' failed to start

I've tried numerous ways of configuring it, but none of them allow monit to
recognize the PIDfile. The only pseudo-success i've had is when I put the
full path, filename and params for memcached, then it at least starts it,
however it still gives me the "does no exist" message, even though the
process is active and running (and the PID exists!).


Upgrade to Windows Live Hotmail for free today!

To unsubscribe:


This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]