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 . . . . .
Monday, January 25, 2010
One Problem Solved, Come Another Problem
Subscribe to:
Post Comments (Atom)
I have been surfing on-line greater than three hours these days, but I never discovered any fascinating article like yours.
ReplyDeleteIt 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
Hurrah! After all I got a website from where I can really
ReplyDeleteobtain useful facts concerning my study and knowledge.
Take a look at my webpage; Educational Articles
Hi I am so glad I found your blog page, I really
ReplyDeletefound 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
Hi, I do think this is a great web site. I stumbledupon it ;) I may come back yet again since i have book marked
ReplyDeleteit. Money and freedom is the greatest way to change, may you be rich
and continue to guide others.
Visit my page: diamond fashion
Spot on with this write-up, I actually believe that this
ReplyDeleteamazing 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
I am regular reader, how are you everybody?
ReplyDeleteThis piece of writing posted at this web site is in fact good.
my web page :: Real Estate Article
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.
ReplyDeleteFeel free to surf to my page :: marketing news
Exemplary Blog!
ReplyDeleteFeel free to visit my web site :: Video Games News
Hello! I’ve been following your blog for some time now and lastly got the bravery to
ReplyDeletego 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