Monday, January 25, 2010

One Problem Solved, Come Another Problem

This is some solution comes from DOVIS Developer

Hi Muhammad,

It took a while but here are some suggestions.
The changes in the dovis_dock.cpp and perl scripts are not working because you are using the options for “lockfile” instead of those for “lockfile-create”.
check:
http://www.tin.org/bin/man.cgi?section=1&topic=lockfile-create
and
http://linux.about.com/library/cmd/blcmdl1_lockfile.htm

I have added below some suggestions on how to alter the code but they may not be 100% correct and you may need to include additional changes. I cannot test here because I don’t have a machine with the Debian Sarge OS.

Daniel


insert this line into dovis_dock.h
after line 47, inside the definition of DOVIS_DATA_TYPE)


std::string lock_command2;

In dovis_dock.cpp file:
Replace these three lines (lines 287-289):


command_oss.str("");
command_oss << "lockfile -" << dovis_data.lock_sleep_time; command_oss << " -r " << dovis_data.lock_retries << " "; with

command_oss.str("");
command_oss << "lockfile-touch “ dovis_data.lock_command2 = command_oss.str(); command_oss.str(""); command_oss << "lockfile-create –retry “ << dovis_data.lock_retries << " "; ------- Also, after line 475 of dovis_dock.cpp, which reads:

command_oss << dovis_data.lock_command << dovis_data.job_control_lock_1; add:

command_oss << dovis_data.lock_command2 << dovis_data.job_control_lock_1 << " & "; ----- after lines 1488 and 1682 of dovis_dock.cpp, which read:

command_oss << dovis_data.lock_command << dovis_data.job_control_lock_2; add:

command_oss << dovis_data.lock_command2 << dovis_data.job_control_lock_2 << " & "; In the perl script you should include something like:

my $lockfile_command = "lockfile-create --retry " . $dovis_opt{LOCK_RETRIES};
my $lockfile_command2 = "lockfile-touch ”;

Then, after these lines:
#############################

# get lock to log cpu count

#############################
if (system "$lockfile_command $lockfile")
{
print "Can not get init lock!\n";
exit;
}

Add these ones

if (system "$lockfile_command2 $lockfile & ")
{
print "Cannot lock_touch file!\n";
exit;
}

And the result is


Well, I still have to work hard then . . . . .

9 comments:

  1. I have been surfing on-line greater than three hours these days, but I never discovered any fascinating article like yours.
    It is pretty value sufficient for me. Personally, if all site owners and bloggers made good content material as you did,
    the net will likely be a lot more useful than ever before.


    my web site :: http://newcorpcredit.dejourbusinessloansus.com

    ReplyDelete
  2. Hurrah! After all I got a website from where I can really
    obtain useful facts concerning my study and knowledge.


    Take a look at my webpage; Educational Articles

    ReplyDelete
  3. Hi I am so glad I found your blog page, I really
    found you by mistake, while I was looking on Yahoo for something
    else, Regardless I am here now and would just like to say
    many thanks for a fantastic post and a all round enjoyable blog (I
    also love the theme/design), I don't have time to read through it all at the minute but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read more, Please do keep up the fantastic work.

    Feel free to surf to my blog post :: http://gamersadda.org/index.php?do=/blog/109749/balanced-diet14931-within-an-german-cafe

    ReplyDelete
  4. Hi, I do think this is a great web site. I stumbledupon it ;) I may come back yet again since i have book marked
    it. Money and freedom is the greatest way to change, may you be rich
    and continue to guide others.

    Visit my page: diamond fashion

    ReplyDelete
  5. Spot on with this write-up, I actually believe that this
    amazing site needs a lot more attention. I'll probably be back again to see more, thanks for the information!

    Here is my webpage :: environmental issues

    ReplyDelete
  6. I am regular reader, how are you everybody?
    This piece of writing posted at this web site is in fact good.


    my web page :: Real Estate Article

    ReplyDelete
  7. Hi there, this weekend is nice in support of me, because this point in time i am reading this wonderful informative article here at my house.


    Feel free to surf to my page :: marketing news

    ReplyDelete
  8. Exemplary Blog!

    Feel free to visit my web site :: Video Games News

    ReplyDelete
  9. Hello! I’ve been following your blog for some time now and lastly got the bravery to
    go on and provide you with a raise your voice from
    Porter Tx! Just desired to mention maintain the
    superb work!

    Have a look at my web-site ... onlygamerszone.com

    ReplyDelete