From 21b874a29addd9f2b94f20ff3a41e8a98f2c596d Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Mon, 26 Jun 2017 11:56:18 -0700 Subject: [PATCH] storage: Perform sync operation before vm is shutdown In case we are using a block device for storage, perform sync so that cached files are written to storage before VM is shutdown. Fixes #1016 Signed-off-by: Archana Shinde --- data/cc-agent.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/cc-agent.service b/data/cc-agent.service index 6678faf1..ca556d18 100644 --- a/data/cc-agent.service +++ b/data/cc-agent.service @@ -5,5 +5,5 @@ Description=Clear Container Agent StandardOutput=tty Type=simple ExecStart=/bin/hyperstart -ExecStop=/usr/bin/systemctl --force poweroff +ExecStop=/bin/sync ; /usr/bin/systemctl --force poweroff FailureAction=poweroff