From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 13525 invoked from network); 28 Aug 1999 15:07:36 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 28 Aug 1999 15:07:36 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA01258 for ; Sat, 28 Aug 1999 11:07:35 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id JAA08440 for axp-list@redhat.com; Sat, 28 Aug 1999 09:07:31 -0600 From: Michal Jaegermann Message-Id: <199908281507.JAA08440@ellpspace.math.ualberta.ca> Subject: Re: what's a amd daemon? To: axp-list@redhat.com Date: Sat, 28 Aug 1999 09:07:31 -0600 (MDT) In-Reply-To: <37C79C19.E9308182@oz.net> from "Ric Tibbetts" at Aug 28, 99 01:21:45 am Content-Type: text Ric Tibbetts wrote: > > Want an easy way? > > rpm -qa | grep amd With only this catch that the package recently was renamed to am-utils so this may not work. > When it lists the amd pkg... rpm -q amd will do the same if 'amd' is really its name. This one will work does not matter what is the current name: rpm -qf /etc/rc.d/init.d/amd Run 'rpm -qif ....' if you want a short description what all of this is about and 'rpm -qivlf ...' to find the whole contents and basic information about a package to which belongs a given file. > > rpm -e > It'll rempove itself from all the run-levels. > > then: ps -ef | grep amd (to get the PID) > kill (to kill the daemon. > > there's a longer harder way to do this.. /etc/rc.d/init.d/amd stop **before** removal strikes me as a simpler, shorter and more reliable way which will not leave some dead lock files if they were indeed created. There is also 'pidof' utility if you are after pid of something. Michal