Denora Stats (discontinued) > Denora 1.5.x Support (Read Only)

stats.pid erased

<< < (3/3)

CrazyCat:

--- Quote from: Taylor on May 30, 2010, 09:23:40 AM ---In the cronscript packed with anope it seems the  $ANOPIDF   is used for the pid file, but later on in the if  where it greps  that  it uses $ANOPID   Missed a letter :p  I don't know anything about shell scripting really, but is this the problem perhaps?

--- End quote ---
No, the ANOPIDF is used to set the ANOPID variable (with a cat), and it's ANOPID (the PID) which must be used in the grep.
And if the .chk was faulty, I guess it may be always faulty, not only sometimes.

Taylor:
That makes no sense to me, where does it get $ANOPID from? It's not set anywhere lol



Nevermind... I'm blind :| but anyways, this does happen to mine not as much on this new shell of mine,  maybe its a crontab problem? the software i mean

CrazyCat:
The main part of the services.chk is:

--- Code: ---if [ -f $ANOPIDF ]
then
        ANOPID=`cat $ANOPIDF`
        if [ `ps auwx | grep $ANOPROG | grep $ANOPID | grep -v -c grep` = 1 ]
        then
                exit
        fi
        rm -f $ANOPIDF
fi

--- End code ---
Third line: ANOPID=`cat $ANOPIDF`. It means that ANOPID is set with the content of ANOPIDF (services.pid)

Edit: whoops, I answered you when you were editing your message :)
I don't think it's crontab himself, but peharps a side effect if the server is overload, and the ps auwx don't respond fast enough ?

Navigation

[0] Message Index

[*] Previous page

Go to full version