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