1 Star 0 Fork 21

yueryoufeng/keepalived

forked from src-openEuler/keepalived 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
keepalived-stop-post.sh 467 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
if [ -f /run/checkers.pid ]; then
checkerpid=$(/usr/bin/cat /run/checkers.pid)
/bin/kill $checkerpid
echo "Kill checkers-pid $checkerpid , when execute stop-post keepalived"
fi
if [ -f /run/vrrp.pid ]; then
vrrppid=$(/usr/bin/cat /run/vrrp.pid)
/bin/kill $vrrppid
echo "Kill vrrp-pid $vrrppid, when execute stop-post keepalived"
fi
if [ -f /run/keepalived.pid.save ]; then
rm -rf /run/keepalived.pid.save
fi
echo "Excuted stop-post keepalived"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yinyongkang/keepalived.git
git@gitee.com:yinyongkang/keepalived.git
yinyongkang
keepalived
keepalived
master

搜索帮助