[102429] in RedHat Linux List
Re: Kill off process at exit
daemon@ATHENA.MIT.EDU (dsb3)
Thu Dec 3 01:12:23 1998
Date: Thu, 3 Dec 1998 00:11:26 -0600 (CST)
From: dsb3 <dsb3@earthlink.net>
To: RedHat Mailing List <redhat-list@redhat.com>
In-Reply-To: <Pine.LNX.3.96.981203132808.4168A-100000@network2.cs.usm.my>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Thu, 3 Dec 1998, Ronnie Thum wrote:
>
>I put this line in my .bash_login ---> RC5/rc5des -quiet &
>This starts up rc5des at login.
>
>Now I want rc5des to shutdown at logout. Can it be done ? How ?
>
didn't you have this in your rc.local just a while ago?
first, I have to wonder why you want to shut it down when you logout
rather than use all that idle time ...
but to answer the question, you can try putting in your .logout file
1) killall rc5des
2) kill `some command to retrieve it's PID`
3) touch RC5/some-file-name
(rc5 will look for a semaphore file, and if present will terminate)
4) etc..
dave
--
| oOOooO /
--| oOobodoO / dsb3@earthlink.net
--| ooOoOo /
| II / Kernel Panic: /dev/brain is on fire.
| II / MD5: 13aa1b8724ce1885cd9e7cad9b2eb9ba
--
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.