New fedora-rpmdevtools: cleanup old stuff
Ville Skyttä
ville.skytta at iki.fi
Mon Mar 21 07:55:29 UTC 2005
On Mon, 2005-03-21 at 04:48 +0100, Michael Schwendt wrote:
> On Sun, 20 Mar 2005 19:30:28 -0800, Toshio Kuratomi wrote:
>
> > This is longer but more "fixed":
> > GCONF_PIDS=`pidof gconfd-2`
> > if [ x"$GCONF_PIDS" != "x" ]; then
> > kill -HUP $GCONF_PIDS
> > fi
> >
> > Is the cleanliness worth the verbosity?
IIRC someone pointed out in this thread that the -HUP might not a good
idea in the first place in some circumstances...?
> gconfd_pids=$(pidof gconfd-2) && kill -HUP $gconfd_pids
This will break the same way as the original killall -HUP when there's
no gconfd-2 running (pidof exits with non-zero). Another quick "fix":
gconfd_pids=$(pidof gconfd-2) && kill -HUP $gconfd_pids || :
More information about the fedora-extras-list
mailing list