重启Linux之前先同步数据到硬盘
This commit is contained in:
parent
56988d02a9
commit
5ecbf95787
|
@ -266,6 +266,9 @@ internal class MyStarClient : StarClient
|
||||||
}
|
}
|
||||||
else if (Runtime.Linux)
|
else if (Runtime.Linux)
|
||||||
{
|
{
|
||||||
|
// 重启Linux之前先同步数据到硬盘
|
||||||
|
"sync".ShellExecute();
|
||||||
|
|
||||||
// 多种方式重启Linux,先使用温和的方式
|
// 多种方式重启Linux,先使用温和的方式
|
||||||
"systemctl".ShellExecute("reboot");
|
"systemctl".ShellExecute("reboot");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue