1 |
Hi Vlad, |
2 |
|
3 |
On Thursday 18 January 2007 22:35, Vlad Dogaru wrote: |
4 |
> Hello everyone, |
5 |
> |
6 |
> I had Conky start automatically when I log in to Fluxbox by adding the |
7 |
> following line to .fluxbox/startup: |
8 |
> |
9 |
> exec /usr/bin/conky & |
10 |
> |
11 |
> It is before exec /usr/bin/fluxbox (a howto warned me about this pitfall) |
12 |
> and everything works as expected. The only problem is that when I exit my |
13 |
> Fluxbox session, Conky doesn't stop, but rather starts eating up my CPU |
14 |
> (could this be because when I log back in I start another instance of it?). |
15 |
> It can't be killed with a KILL signal, but I noticed HUP will do the trick. |
16 |
> Is this normal? How can I have Conky stopped at logout? |
17 |
|
18 |
Since no answers have been offered so far, I'll have a go at suggesting some |
19 |
things to try. |
20 |
|
21 |
I am afraid I do not have conky on my machines, so I can't readily test this. |
22 |
What you probably need is a line like: |
23 |
============================================ |
24 |
kill -HUP conky |
25 |
============================================ |
26 |
after your 'exec /usr/bin/conky &' entry in .fluxbox/startup. |
27 |
|
28 |
Alternatively, |
29 |
============================================meant to be |
30 |
kill -HUP `echo ${SOME_THING} | cut -d ':' -f 2` |
31 |
============================================ |
32 |
may do the trick but only if 'SOME_THING' is an environment variable for |
33 |
conky, which may or may not exist. If it doesn't exist then you need a |
34 |
string which will source the conky PID from ps. I haven't such a string |
35 |
available here, but I recall seeing something in Google. |
36 |
|
37 |
Hope the above is not wildly incorrect and helps you find something that |
38 |
works. Please post back either way. |
39 |
-- |
40 |
Regards, |
41 |
Mick |