[102469] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Kill off process at exit

daemon@ATHENA.MIT.EDU (Dave Ihnat)
Thu Dec 3 08:57:15 1998

From: ignatz@homebru.chi.il.us (Dave Ihnat)
To: redhat-list@redhat.com
Date: Thu, 3 Dec 1998 07:50:16 -0600 (CST)
In-Reply-To: <Pine.LNX.3.96.981203132808.4168A-100000@network2.cs.usm.my> from "Ronnie Thum" at Dec 3, 98 01:30:39 pm
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Ronnie Thum wrote:

> Now I want rc5des to shutdown at logout. Can it be done ? How ?

I usually wait until I see nobody else is going to flood the net, but this
is too simple, so:

Assuming rc5des shuts down on a simple TERM signal--substitute the appropriate
signal or whatever--all you need do is change your invocation and add 2 lines:

RC5/rc5des -quiet&
RC5_PID=$!

trap "kill $RC5_PID" 0
-- 
	Dave Ihnat
	ignatz@homebru.dminet.com
	312/315.1075 [home office]


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post