bb_start stop doesn't work on FreeBSD
Brought to you by:
aeby
Running bin/bb_start stop doesn't stop anything, as it
seems to not recognize the process.
ps entry looks like:
/usr/bin/perl /home/bs/bin/bsmon
in @ps it is:
68196 ?? SN 0:01.44 perl
and daemon find regex in bb_start is
grep( /\s$daemon$/ || /.*perl (bin|uxmon)\/$daemon\s/,
@ps );
There are two problems here:
1) None of the "ps cax", "ps -e", "ps -ef" produce correct
proclist under FBSD. It should be ps ax.
2) Under "ps ax" /.*perl (bin|uxmon)\/$daemon\s/ is not
enough, as it should include "/home/bs/" part too.
Pavel Veretennikov
vermut@aija.net
Logged In: YES
user_id=77961
Hmpf, I hate the "ps" command. "ps ax" is not a real good
choice, either. "ps cax" on a "normal" system would print
something like
68196 ?? SN 0:01.44 bsmon
It's fun :-((
Logged In: YES
user_id=77961
Ok, it's fixed (hopefully), now. During startup Big Sister
processes now set their name via setting $0. bb_start has
been slightly modified to recognize variations due to this
name override (on some systems the process name will be
listed as "newname (originalname)".
If you want you can try this out, you'll have to replace
common.pm by
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/\checkout*/bigsister/bigsister/common.pm?rev=1.38
and bb_start by
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/\checkout*/bigsister/bigsister/tools/bb_start.pl?rev=1.11
Best regards,
Tom
Logged In: YES
user_id=77961
fixed & released :-)