#!/bin/sh # # /etc/heartbeat/resource.d/Conntrackd # # Maximilian Wilhelm # -- Mon, 06 Nov 2006 20:07:09 +0100 # export LC_ALL=POSIX export LANG=POSIX export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ## # Silently exit if the daemon does not exis as it would be better to have # a running backup firewall without conntrack synced rather than having none, # because of not conntrack synced... read: exit 0 in any case. if ! command -v conntrackd >/dev/null; then exit 0 fi case "$1" in start) conntrackd -c # commit external cache conntrackd -R # resync with kernel conntrack table exit 0 ;; stop) # nothing to do exit 0 ;; *) exit 0 ;; esac # vim:ft=sh