sleep4 for service restart
This commit is contained in:
parent
a30a8361f7
commit
78b197315b
@ -78,6 +78,7 @@ function compare(){
|
||||
}
|
||||
|
||||
function restart(){
|
||||
sleep 4
|
||||
systemctl restart $serviceName
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "error: systemctl restart ${serviceName} failed!"
|
||||
|
Loading…
x
Reference in New Issue
Block a user