service xxx stop; sync; tar xxxxxxxx; sync; service xxx start 如果你要停掉的 service 是類...
service xxx stop; sync; tar xxxxxxxx; sync; service xxx start 如果你要停掉的 service 是類...
先建立如下的 Script: net stop myservice start /wait copyfile.bat net start myservice 註...
先建立如下的 Script: net stop myservice start /wait copyfile.bat net start myservice 註...
等待??你執行/etc/init.d/xxx stop,應該就會等到他執行完才會return吧? 不然就用wait。但是前提是service是你這個script...