[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v1] tools: handle missing xencommons in xenconsoled.service


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Tue, 4 May 2021 15:58:54 +0200
  • Arc-authentication-results: i=1; strato.com; dkim=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1620136736; s=strato-dkim-0002; d=strato.com; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=aoG9+qL2ivaPMEoU1EGRyiASZMMlBWNhdK9xa+nEY4A=; b=LoVBmF6ooWY1hxCAZuOXiOKteM11Ww3a3sv4c7Spjl7TNBBhBLV97vZH/3fmgAJymv v8cBe9WvJNT8zEJTD0q67bILopKV015Q/c3paTpzSb0kBWQMOIhaXEXjxHk4A8MgjY29 EofCIf773fri8J9ehTNRI9FpUartpQGcGSMj2/3VxomQg7FpoyvDy4tG2/PZYhkZFLAc mBqNHwpRaGdVdLGgtz0C58Y7I8KrbEdQ9JJCUoygq23HyxHbYJxE9MdpiafHwEYxWx+U vKXD5qAPBvVXe40MaoDHC4d/qZ24aOLdpL8MVJ6PjPNOSs07VDdH7rGDaGe+GU8yopXD dBUQ==
  • Arc-seal: i=1; a=rsa-sha256; t=1620136736; cv=none; d=strato.com; s=strato-dkim-0002; b=gl8n6LEUf177IKD+nxWuzBd3rcbyssXGgAUhGGr1d5Rd9FFzP2ZDqKr3QIPf79G/P3 HYXpQ1FAH4/gOuRblkORui+7SxNkoeMsEgkZl9i133B2gcUvLGENNIajUMYZc+Scoy/4 h5GEbiuZ7OQIswKwBgVLGvaDXkXxwzmmev2abTuuyp+Q1k/daez7diEdoKRr98VvKBt2 KV3wJcdqAPVpuX0lBRGavOJ+oGf0cZPHXJuB/ncYGWpDBJRJjqEY9PcYUWOgoop5G+SM 01Q0ZIJlLAyr4brqg+uMjaV69zCOROa8bBW2g6FKGW8ck/35d6NPY7vJjoZyNpRGHGwu 6VQQ==
  • Authentication-results: strato.com; dkim=none
  • Cc: Olaf Hering <olaf@xxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Tue, 04 May 2021 13:59:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

sysconfig files are not mandatory.
Adjust xenconsoled.service to handle a missing sysconfig file by
prepending a dash to the to-be-sourced filename.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
 tools/hotplug/Linux/systemd/xenconsoled.service.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/hotplug/Linux/systemd/xenconsoled.service.in 
b/tools/hotplug/Linux/systemd/xenconsoled.service.in
index 8e333b114e..1f03de9041 100644
--- a/tools/hotplug/Linux/systemd/xenconsoled.service.in
+++ b/tools/hotplug/Linux/systemd/xenconsoled.service.in
@@ -9,7 +9,7 @@ Type=simple
 Environment=XENCONSOLED_ARGS=
 Environment=XENCONSOLED_TRACE=none
 Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console
-EnvironmentFile=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
+EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons
 ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
 ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}
 ExecStart=@sbindir@/xenconsoled -i --log=${XENCONSOLED_TRACE} 
--log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.