mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +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
|
$SUDO systemctl start openvpn.service
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Ensure that cached writes reach persistent storage
|
||||||
|
echo "::: Flushing writes to disk..."
|
||||||
|
sync
|
||||||
|
|
||||||
echo "::: done."
|
echo "::: done."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue