Re: Question about cvm-chain module

Charlie Brady <[email protected]> Mon, 25 Jul 2005 14:29:04 -0400 (EDT)
Newsgroups gmane.comp.sysutils.bgware
Message-ID <[email protected]>
On Sun, 24 Jul 2005, David J. Weller-Fahy wrote:

> * David J. Weller-Fahy <[email protected]> [2005-07-24 21:42 +0200]:
>> One of the problems is I'm not certain whether it's supposed to be
>> used as a service like cvm-unix, or as part of the command line like
>> cvm-checkpassword.
>
> I found [1], which indicates that cvm-chain is run as a service, similar
> to cvm-unix.  However, using the same run script used in the post, I
> simply get my startup echo's repeating once per second, and no
> indication of the cvm-chain module actually starting.  I've also tried
> using DEBUG=1 in the script, with no luck.a  I'll attach my run script.

If you really have attached your run script, then the problem is obvious -
your script simplifies to:

#!/bin/sh
echo CLEANED.3283
exit

> So, my revised question is: Does anyone see anything in the run script
> that could prevent this service from functioning as it should?

There's some good general advice about debugging run scripts here:

http://homepages.tesco.net/~J.deBoynePollard/FGA/daemontools-service-not-staying-up.html

strace will usually help you find the problem quickly:

( cd $SERVICE_DIRECTORY ; strace -f ./run )