From bb18ec05203377c4e454466d4e572cfaa9483bf7 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Wed, 14 Sep 2016 11:13:39 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20service=20pour=20ut?= =?UTF-8?q?iliser=20le=20endpoint=20sur=20127.0.0.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dans l'attente de mieux on utilise 127.0.0.1 de toute manière oned n'écoute que sur 127.0.0.1 ref #17085 @20m --- init/onenode.service | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/init/onenode.service b/init/onenode.service index b1205ca..44e3964 100644 --- a/init/onenode.service +++ b/init/onenode.service @@ -4,12 +4,13 @@ After=opennebula.service opennebula-sunstone.service [Service] Type=oneshot -Environment=CREDS='/var/lib/one/.one/one_auth' +Environment=CREDS=/var/lib/one/.one/one_auth +Environment=ENDPOINT=http://127.0.0.1:2633/RPC2 TimeoutSec=1min RemainAfterExit=yes Restart=no -ExecStart=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -a "resume" -ExecStop=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -a "suspend" +ExecStart=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -e ${ENDPOINT} -a "resume" +ExecStop=/usr/share/eole/sbin/onevm-all -w -c ${CREDS} -e ${ENDPOINT} -a "suspend" [Install] WantedBy=multi-user.target