summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/firewall/conntrack-table-size/node.def2
-rw-r--r--templates/firewall/node.def2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/firewall/conntrack-table-size/node.def b/templates/firewall/conntrack-table-size/node.def
index adb994a..310b995 100644
--- a/templates/firewall/conntrack-table-size/node.def
+++ b/templates/firewall/conntrack-table-size/node.def
@@ -29,7 +29,7 @@ update:
sudo sh -c "echo $VAR(@) > \
/proc/sys/net/nf_conntrack_max"
# need to restart conntrackd with updated conntrack table size
- if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/service/conntrack-sync ] ; then
+ if cli-shell-api existsActive service conntrack-sync; then
sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable
fi
diff --git a/templates/firewall/node.def b/templates/firewall/node.def
index 5054f23..e95bc07 100644
--- a/templates/firewall/node.def
+++ b/templates/firewall/node.def
@@ -18,6 +18,6 @@ delete: # set conntrack table size to standard 16384 entries if fw disabled
fi
# need to restart conntrackd with updated conntrack table size
- if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/service/conntrack-sync ] ; then
+ if cli-shell-api existsActive service conntrack-sync; then
sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable
fi