Skip to content
This repository has been archived by the owner on Mar 28, 2018. It is now read-only.

Commit

Permalink
storage: Perform sync operation before vm is shutdown
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
amshinde committed Jun 26, 2017
1 parent fa8a0d0 commit 21b874a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/cc-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 21b874a

Please sign in to comment.