TA的每日心情 | 无聊 6 天前 |
---|
签到天数: 1644 天 [LV.Master]伴坛终老
|
查看keepalived的启动service文件内容如下:# /usr/lib/systemd/system/keepalived.service
[Unit]
Description=LVS and VRRP High Availability Monitor
After=syslog.target network-online.target
[Service]
Type=forking
PIDFile=/var/run/keepalived.pid
KillMode=process
EnvironmentFile=-/etc/sysconfig/keepalived
ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target 把这一行(KillMode=process)注释掉即可,这行目前只会停止主进程而不会关闭子进程,所以才会出现这个情况
|
|