> 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
