mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-19 19:30:16 +00:00
Merge pull request #737 from Calvin-L/patch-1-on-test-branch
Flush disk writes before reboot (resubmit)
This commit is contained in:
commit
50e19f5906
1 changed files with 4 additions and 0 deletions
|
@ -1371,6 +1371,10 @@ main() {
|
|||
$SUDO systemctl start openvpn.service
|
||||
;;
|
||||
esac
|
||||
|
||||
# Ensure that cached writes reach persistent storage
|
||||
echo "::: Flushing writes to disk..."
|
||||
sync
|
||||
|
||||
echo "::: done."
|
||||
|
||||
|
|
Loading…
Reference in a new issue