<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://shiyoka.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://shiyoka.com/feed.php">
        <title>ClownWiki - pound:pound_keepalived</title>
        <description></description>
        <link>https://shiyoka.com/</link>
        <image rdf:resource="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-05-08T13:32:48+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=pound:pound_keepalived:check.sh&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=pound:pound_keepalived:checkstart.sh&amp;rev=1739713984&amp;do=diff"/>
                <rdf:li rdf:resource="https://shiyoka.com/doku.php?id=pound:pound_keepalived:keepalived.conf&amp;rev=1739713984&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>ClownWiki</title>
        <link>https://shiyoka.com/</link>
        <url>https://shiyoka.com/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="https://shiyoka.com/doku.php?id=pound:pound_keepalived:check.sh&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>check.sh</title>
        <link>https://shiyoka.com/doku.php?id=pound:pound_keepalived:check.sh&amp;rev=1739713984&amp;do=diff</link>
        <description>#!/bin/sh

#監視開始直後のチェック無視時間
sleep 5

#チェックIP
CHECK_IP=192.168.80.250

#チェックPATH
CHECK_PATH=/index.html

#チェックURL
CHECK_URL=http://$CHECK_IP$CHECK_PATH

#STOPフラグ
STOP_FLAG=0

#STOPフラグしきい値
STOP_FLAG_LIMIT=5

while true ; do

    #監視インターバル
    sleep 5

    CODE=`/usr/bin/curl -s --head $CHECK_URL | head -n 1 | cut -f 2 -d &#039; &#039;`

    if [ &quot;$CODE&quot; != &quot;200&quot; ]  ; then
         /etc/rc.d/init.d/pound start
    else
         STOP_FLAG=0
    fi
done…</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=pound:pound_keepalived:checkstart.sh&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>checkstart.sh</title>
        <link>https://shiyoka.com/doku.php?id=pound:pound_keepalived:checkstart.sh&amp;rev=1739713984&amp;do=diff</link>
        <description>#!/bin/sh

CHECK_SHELL=/etc/keepalived/check.sh
 
#チェック用シェルが起動されていたらkillする
CHEK_SHELL_PS=`ps -ef | grep $CHECK_SHELL | grep -v grep`
if [ -n &quot;$CHEK_SHELL_PS&quot; ] ; then
    for PID in `echo $CHEK_SHELL_PS | awk &#039;{print $2}&#039;` ; do
        echo &quot;kill -9 $PID&quot;
        kill -9 $PID
    done
fi

$CHECK_SHELL &amp;
exit</description>
    </item>
    <item rdf:about="https://shiyoka.com/doku.php?id=pound:pound_keepalived:keepalived.conf&amp;rev=1739713984&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-02-16T13:53:04+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>keepalived.conf</title>
        <link>https://shiyoka.com/doku.php?id=pound:pound_keepalived:keepalived.conf&amp;rev=1739713984&amp;do=diff</link>
        <description>keepalived.conf


! Configuration File for keepalived

global_defs {
   notification_email {
   }
}

vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass passworddayo
    }
    virtual_ipaddress {
        192.168.10.200
    }
    notify_master &quot;/etc/keepalived/checkStart.sh&quot;
    notify_backup &quot;/etc/keepalived/checkStart.sh&quot;
}</description>
    </item>
</rdf:RDF>
