[Pkg-firebird-general] one more thing

Grzegorz B. Prokopski gadek@debian.org
Fri, 30 Jul 2004 11:30:31 -0400


W li=B6cie z pi=B1, 30-07-2004, godz. 05:47, Daniel Urban pisze:=20
> Hi
> Only one important issue (AFAIK) remains:
> =20
> After uninstall classic server there is fb_lock_mgr running.
> In standard firebird there is in preuninstall.sh is
> =20
> =20
> # Stop lock manager if it is the only thing running.
> =20
>     for i in `ps -ef | egrep "[gds|fb]_lock_mgr" | cut -d' ' -f3`
>      do
>         kill $i
>      done
>=20
> =20
> but it doesn't work. Maybe somebody knows how to
> kill all running fb_lock_mgr without killall?

The above tries to be almost an equivalent of killall so I don't see
a gain of using such complicated method of killing the process.

But why not do something like (not tested though):

for i in `ps -ef | grep ^firebird | awk '{ print $8 " " $3 }' \
  | egrep '[gds|fb]_lock_mgr' | awk '{ print $2 }'; do ...

This should only touch processes that run as firebird* user and only
pay attention to the binary name and not to its parameters.  This
would be an important improvement over what killall or the current
version would do.

HTH

				GBP

--=20
Grzegorz B. Prokopski      <gadek@debian.org>
Debian GNU/Linux           http://www.debian.org
SableVM - LGPL'ed Java VM  http://www.sablevm.org
Why SableVM ?!?            http://devel.sablevm.org/wiki/Features