Re: one more on plan (fwd)
One of the packages that I maintain includes a daemon, pland, that is
recommended to be started in users' .xsession file. Previously, after
logout, the daemon just hung around and is therefore recommended to be
started as pland -k, where the -k kills any existing pland before starting
a new one. Another switch, invoked as pland -K, kills any existing pland
and then exits without starting a new one. Dirk Eddelbuetel advised me to
do something to kill pland on logout as it is a waste of resources so I
thought that I could add "pland -K" to my .xsession as the last line so
that when I quite my window manager (second last line), pland -K is
invoked and any existing daemon is killed. I tried this but it does not
work. Am I doing something wrong or is there another way to go about this?
I suppose I could look at .logout but I would like to keep this in
.xsession as it is an X app and that seems cleaner. Any suggestions are
gratefully appreciated. My .xsession is below. Cheers, Colin.
--
Colin Telmer, Institute of Intergovernmental Relations
School of Policy Studies Building, Room 309, Queen's University
Kingston, Ontario, Canada, K7L-3N6 (613)545-6000x4219
<mailto:telmerco@qed.econ.queensu.ca>
<http://terrapin.econ.queensu.ca>
---------- Forwarded message ----------
Date: Thu, 20 Nov 1997 23:46:09 -0500 (EST)
From: "Colin R. Telmer" <telmerco@qed.econ.queensu.ca>
To: Dirk Eddelbuettel <edd@rosebud.sps.queensu.ca>
Subject: Re: one more on plan
On Mon, 20 Oct 1997, Dirk Eddelbuettel wrote:
>
> Colin> I don't exactly understand. Do you mean to add a line to kill pland
> Colin> after the usual final line that starts a window manager so that on
> Colin> logout you pland is killed? One could use pland -K
>
> Yes, that's what I mean. If you don't kill it, it hangs around for no good
> reason.
This doesn't work for me:
cgowave-4-237:~$ more .xsession
if [ -x /usr/lib/plan/pland ] ; then
/usr/lib/plan/pland -k
else
echo "Can't find pland"
fi
xhost +$HOSTNAME.cgocable.net
exec /usr/X11R6/bin/fvwm2
/usr/lib/plan/pland -K
cgowave-4-237:~$
pland -K works when you run it by hand, but not here - I always find
telmerco's pland -k running when I log in as root afterwards. Can you
see any thing wrong with the above? Cheers.
--
Colin Telmer, Institute of Intergovernmental Relations
School of Policy Studies Building, Room 309, Queen's University
Kingston, Ontario, Canada, K7L-3N6 (613)545-6000x4219
<mailto:telmerco@qed.econ.queensu.ca>
<http://terrapin.econ.queensu.ca>
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: