This commit is contained in:
zeaslity
2024-10-30 16:30:51 +08:00
commit 437acbeb63
3363 changed files with 653948 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/bash
COUNT=`netstat -ntlp | grep rpc | wc -l`
if [ $COUNT -eq 0 ];then
systemctl restart nfs-kernel-server.service
sleep 2
if [ `ps -C nfsd --no-header |wc -l` -eq 0 ];then
killall keepalived
fi
fi