Listing 1: Installatiosskript SEESAW_BIN="/usr/local/seesaw" SEESAW_ETC="/etc/seesaw" SEESAW_LOG="/var/log/seesaw" INIT=`ps -p 1 -o comm=` install -d "${SEESAW_BIN}" "${SEESAW_ETC}" "${SEESAW_LOG}" install "${GOPATH}/bin/seesaw_cli" /usr/bin/seesaw for component in {ecu,engine,ha,healthcheck,ncc,watchdog}; do install "${GOPATH}/bin/seesaw_${component}" "${SEESAW_BIN}" done if [ $INIT = "init" ]; then install "etc/init/seesaw_watchdog.conf" "/etc/init" elif [ $INIT = "systemd" ]; then install "etc/systemd/system/seesaw_watchdog. service" "/etc/systemd/system" systemctl --system daemon-reload fi install "etc/seesaw/watchdog.cfg" "${SEESAW_ETC}" # Aktivieren Sie CAP_NET_RAW für Seesaw- Binärdateien, die Raw-Sockets benötigen. /sbin/setcap cap_net_raw+ep "${SEESAW_BIN}/seesaw_ha" /sbin/setcap cap_net_raw+ep "${SEESAW_BIN}/seesaw_healthcheck" Listing 2: Seesaw-Konfigurationsdatei [cluster] anycast_enabled = false name = ita node_ipv4 = 192.168.10.2 node_ipv6 = 2000:ita::2 peer_ipv4 = 192.168.10.3 peer_ipv6 = 2000:ita::3 vip_ipv4 = 192.168.10.1 vip_ipv6 = 2000:ita::1 [config_server] primary = seesaw-config1.beispiel1.de secondary = seesaw-config2.beispiel2.de tertiary = seesaw-config3.beispiel32.de [interface] node = eth0 lb = eth1