tools: handle missing xencommons in xenconsoled.service
authorOlaf Hering <olaf@aepfle.de>
Tue, 4 May 2021 13:58:54 +0000 (15:58 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 May 2021 18:10:42 +0000 (19:10 +0100)
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@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/hotplug/Linux/systemd/xenconsoled.service.in

index 8e333b114eb0bc1fb0cc8ec98f0454d9e6f7a935..1f03de9041ed3f17bf611d69579e9c72ced141d0 100644 (file)
@@ -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