sleep4 for service restart

This commit is contained in:
zhangkun9038@dingtalk.com 2023-04-26 08:26:35 +08:00
parent a30a8361f7
commit 78b197315b

View File

@ -78,6 +78,7 @@ function compare(){
}
function restart(){
sleep 4
systemctl restart $serviceName
if [ $? -ne 0 ]; then
echo "error: systemctl restart ${serviceName} failed!"