From 07e1554b71c6e0af160578a414be08a9dbbafa04 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Fri, 12 Jan 2024 17:31:03 +0000 Subject: T5715: Fix for restart vpn Fix for `restart vpn` --- templates/restart/vpn/node.def.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/restart/vpn/node.def.in b/templates/restart/vpn/node.def.in index ad426bb..f2cb6cc 100644 --- a/templates/restart/vpn/node.def.in +++ b/templates/restart/vpn/node.def.in @@ -1,5 +1,5 @@ help: Restart IPsec VPN -run: if [ -n "$(cli-shell-api returnActiveValues vpn ipsec)" ]; then +run: if cli-shell-api existsEffective vpn ipsec; then if pgrep charon > /dev/null then @SUDOUSRDIR@/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process -- cgit v1.2.3