Hello again,

I have fixed the KDE client so it work again (git master). It is still as 
robust as a house of card, but it should work again, for now, please confirm.

Thanks

----- Original Message -----
From: "Andrew Myers" <[email protected]>
To: [email protected]
Sent: Thursday, May 31, 2012 10:35:21 AM
Subject: Re: [SFLphone] sflphoned keeps running after gnome client shutdown


I have asked this question elsewhere in a different form, but, in what 
circumstances does one user need more than one client running? 

Also closing the last KDE-client does not kill the daemon here. 

I can launch the client with a script:#!/bin/bash 
sflphone-client-kde 
PID=`cat /home/andrew/.cachesflphone/sfl.pid`
kill $PID But this assumes only one kde-client can be running 

Cheers 

Andrew 




On 31/05/12 16:09, Emmanuel Lepage wrote: 



>From what Tristan says all the sflphoned instances will remain running 
until the last user quits their client, at which time, it is not clear 
if one sflphoned instance will be killed, or all of them. Either way 
would not work for you. There can only be one client per user or thing will go 
mad. There can be many daemon only if there is many users.

SFLPhone daemon does not really check if a client is running, it only manage a 
count of the clients registered with it.


As to work around the problem, something like this could work:

#!/bin/bash
while true;do if [ -z "$(pidof sflphone-client-kde)" ] && [ -n "$(pidof 
sflphoned)" ]; then killall sflphoned ;fi;sleep 30;done

----- Original Message -----
From: "Andrew Myers" <[email protected]> To: 
[email protected] Sent: Thursday, May 31, 2012 9:51:51 AM
Subject: Re: [SFLphone] sflphoned keeps running after gnome client shutdown


Excuse me barging in but, on my system there is a pid file created under the 
users home directory e.g. /home/username/.cachesflphone/sfl.pid, which seems to 
hold the pid of the sflphoned instance started for that user. 

If this is correct then you could use that to stop the daemon relating to that 
user when they quit their client. 

Cheers 

Andrew 

On 31/05/12 15:32, Jan Middelkoop wrote: 

Hi Tristan,

Thank you for your reply.

How does sflphoned check if there is still a client instance running?  
Because this is a terminal server environment.  On busy days, there are 
at least 10 sflphoned & sflphone-client-gnome instances running on the 
computer.  All under different users though.

When everyone logs out, there are no instances of sflphone-client-gnome 
still running, but there are always several sflphoned processes still 
running (and accepting phonecalls).

Met vriendelijke groet,

Jan Middelkoop
Recreatie en Zorg Groep B.V. 
_______________________________________________
SFLphone mailing list [email protected] 
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone 
_______________________________________________
SFLphone mailing list [email protected] 
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone 
_______________________________________________
SFLphone mailing list
[email protected]
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone
_______________________________________________
SFLphone mailing list
[email protected]
http://lists.savoirfairelinux.net/mailman/listinfo/sflphone

Reply via email to