summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-03-05 20:51:13 +0100
committerChristian Poessinger <christian@poessinger.com>2022-03-05 20:54:15 +0100
commit0aa13010b1a013edc3c3a89a007108dfbb82bdad (patch)
tree94ef398394e337dcc494404e2c92577419840368 /src
parent36c46f5893fa1f4df1defcee851e44ca3ed1fd8f (diff)
downloadvyos-1x-0aa13010b1a013edc3c3a89a007108dfbb82bdad.tar.gz
vyos-1x-0aa13010b1a013edc3c3a89a007108dfbb82bdad.zip
conntrackd: T4259: fix daemon configuration path
(cherry picked from commit aa8080d316dbeb4d26bf67f6d67efeda43b2bc07)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/helpers/vyos-vrrp-conntracksync.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/helpers/vyos-vrrp-conntracksync.sh b/src/helpers/vyos-vrrp-conntracksync.sh
index 4501aa63e..0cc718938 100755
--- a/src/helpers/vyos-vrrp-conntracksync.sh
+++ b/src/helpers/vyos-vrrp-conntracksync.sh
@@ -14,12 +14,10 @@
# Modified by : Mohit Mehta <mohit@vyatta.com>
# Slight modifications were made to this script for running with Vyatta
# The original script came from 0.9.14 debian conntrack-tools package
-#
-#
CONNTRACKD_BIN=/usr/sbin/conntrackd
CONNTRACKD_LOCK=/var/lock/conntrack.lock
-CONNTRACKD_CONFIG=/etc/conntrackd/conntrackd.conf
+CONNTRACKD_CONFIG=/run/conntrackd/conntrackd.conf
FACILITY=daemon
LEVEL=notice
TAG=conntrack-tools
@@ -29,6 +27,10 @@ FAILOVER_STATE="/var/run/vyatta-conntrackd-failover-state"
$LOGCMD "vyatta-vrrp-conntracksync invoked at `date`"
+if ! systemctl is-active --quiet conntrackd.service; then
+ echo "conntrackd service not running"
+ exit 1
+fi
if [ ! -e $FAILOVER_STATE ]; then
mkdir -p /var/run