From a2951b072fdfadf273f8e960defcc9b49e4682e2fc926286df31d689a17e651b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 24 Jan 2023 08:38:02 +0000 Subject: [PATCH] Accepting request 1045319 from home:kostasp:branches:Virtualization:containers - Add stop entry to systemd service file so the lxc containers shutdown gracefully OBS-URL: https://build.opensuse.org/request/show/1045319 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/lxd?expand=0&rev=124 --- lxd.changes | 6 ++++++ lxd.service | 1 + 2 files changed, 7 insertions(+) diff --git a/lxd.changes b/lxd.changes index 8c0fb3f..ee66209 100644 --- a/lxd.changes +++ b/lxd.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Dec 25 19:01:56 UTC 2022 - Kostas Papadakis + +- Add stop entry to systemd service file so the lxc containers shutdown + gracefully + ------------------------------------------------------------------- Mon Dec 12 04:12:54 UTC 2022 - Aleksa Sarai diff --git a/lxd.service b/lxd.service index d515f5c..ef99bf3 100644 --- a/lxd.service +++ b/lxd.service @@ -8,6 +8,7 @@ Documentation=man:lxd(1) Environment=LXD_OVMF_PATH=/usr/share/lxd/ovmf ExecStart=/usr/bin/lxd --group=lxd --logfile=/var/log/lxd/lxd.log ExecStartPost=/usr/bin/lxd waitready --timeout=600 +ExecStop=/usr/bin/lxd shutdown --timeout=600 TimeoutStartSec=600s TimeoutStopSec=30s Restart=on-failure