diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/bgp/node.def | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/protocols/bgp/node.def b/templates/protocols/bgp/node.def index 3e9e6b51..44319838 100644 --- a/templates/protocols/bgp/node.def +++ b/templates/protocols/bgp/node.def @@ -7,4 +7,8 @@ val_help: u32:1-4294967294; AS number syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \ "AS number must be between 1 and 4294967294" -end: /opt/vyatta/sbin/vyatta-bgp.pl --main +end: +if [ ! -f "/tmp/protocols-bgp.$PPID" ]; then + touch /tmp/protocols-bgp.$PPID; + /opt/vyatta/sbin/vyatta-bgp.pl --main +fi;
\ No newline at end of file |