Hi,
On Thu, Jul 20, 2017 at 6:52 PM, Daniel Wagner <wagi(a)monom.org> wrote:
Hi Julien,
On 06/21/2017 03:52 PM, Julien Massot wrote:
>
> Hi all,
>
> I'm currently integrating PacRunner,
> but I don't see any recommended solution to start it.
>
> PACRunner ship a dbus autostart file in:
> /usr/share/dbus-1/system-services/pacrunner.service
> BTW the path is not correct, I will send a patch to have
> "org.pacrunner.service".
>
> And PacRunner doesn't ship any systemd unit file, so my guess was that
> ConnMan will start it through dbus if a proxy server is set manually, or
> if wpad
> discover a pac/wpad file.
>
> But ConnMan plugins doesn't call PacRunner if the daemon is not running,
> and explicitely ask to not start the daemon.
>
>
>
> static void destroy_proxy_configuration(void)
> ..
> line 237: dbus_message_set_auto_start(msg, FALSE);
>
>
> static void default_service_changed(struct connman_service *service)
> ..
> line 267: if (!daemon_running)
> return;
>
> So from my point of view, shipping a systemd unit file is not the best
> solution,
> since starting pacrunner on boot is a waste of time.
>
> And ConnMan pacrunner plugin,
> should try to autostart PacRunner if we connect to a network which
> have a proxy configured or discovered.
>
> Last solution should be that on a first call of libproxy pacrunner
> starts but it look like a bad solution since most likely connman will
> not send the proxy
> configuration yet.
I did some test and PACRunner starts on first call to libproxy or
pacrunner dbus API,
with dbus autostart.
And it seems to work, PACRunner get his configuration from connman,
before replying to the request.
I haven't really a clue what the dependencies are. Isn't there already some
integration in some distributions? At least we got some patches from distros
on PacRunners. Maybe there are some pointers how it might work.
Thanks,
Daniel
--
*This email and any attachment thereto are confidential and intended solely
for the use of the individual or entity to whom they are addressed.If you
are not the intended recipient, please be advised that disclosing, copying,
distributing or taking any action in reliance on the contents of this email
is strictly prohibited. In such case, please immediately advise the sender,
and delete all copies and attachment from your system.This email shall not
be construed and is not tantamount to an offer, an acceptance of offer, or
an agreement by SoftBank Robotics Europe on any discussion or contractual
document whatsoever. No employee or agent is authorized to represent or
bind SoftBank Robotics Europe to third parties by email, or act on behalf
of SoftBank Robotics Europe by email, without express written confirmation
by SoftBank Robotics Europe’ duly authorized representatives.*
------------------------------
*Ce message électronique et éventuelles pièces jointes sont confidentiels,
et exclusivement destinés à la personne ou l'entité à qui ils sont
adressés.Si vous n'êtes pas le destinataire visé, vous êtes prié de ne pas
divulguer, copier, distribuer ou prendre toute décision sur la foi de ce
message électronique. Merci d'en aviser immédiatement l'expéditeur et de
supprimer toutes les copies et éventuelles pièces jointes de votre
système.Ce message électronique n'équivaut pas à une offre, à une
acceptation d’offre, ou à un accord de SoftBank Robotics Europe sur toute
discussion ou document contractuel quel qu’il soit, et ne peut être
interprété comme tel. Aucun employé ou agent de SoftBank Robotics Europe
n'est autorisé à représenter ou à engager la société par email, ou à agir
au nom et pour le compte de la société par email, sans qu’une confirmation
écrite soit donnée par le représentant légal de SoftBank Robotics Europe ou
par toute autre personne ayant reçu délégation de pouvoir appropriée.*