Menu

#126 bb_start stop doesn't work on FreeBSD

to_be_fixed_later
closed-fixed
nobody
5
2003-08-09
2003-01-07
Anonymous
No

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

Discussion

  • Thomas Aeby

    Thomas Aeby - 2003-01-07

    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 :-((

     
  • Thomas Aeby

    Thomas Aeby - 2003-01-10
    • status: open --> open-fixed
     
  • Thomas Aeby

    Thomas Aeby - 2003-01-10

    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

     
  • Thomas Aeby

    Thomas Aeby - 2003-08-09

    Logged In: YES
    user_id=77961

    fixed & released :-)

     
  • Thomas Aeby

    Thomas Aeby - 2003-08-09
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB