Skip to content

Commit

Permalink
exabgp support: allow for enabling of exabgp during runtime with supe…
Browse files Browse the repository at this point in the history
…rvisord
  • Loading branch information
dschmitz2017 committed Jul 6, 2023
1 parent 34a3cd9 commit 963b525
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions exabgp/run-exabgp-generic
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ EOF
add_line1="autostart=false"
fi

enable1=0
if [ "$1" != "${1#--enable}" ]; then
enable1=1
shift 1
shift_count=$(( $shift_count + 1 ))
fi

user_line=
if [ -n "$FOD_SYSUSER" ]; then
user_line="user=$FOD_SYSUSER"
Expand All @@ -294,6 +301,11 @@ stdout_logfile=./log/exabgp-stdout.log ; stdout log path, NONE for none;
stderr_logfile=./log/exabgp-stderr.log ; stderr log path, NONE for none; default AUTO
EOF

if [ "$enable1" = 1 ]; then
supervisorctl reload
supervisorctl start exabgp
fi

fi

elif [ "$1" = "--run0" ]; then # assumes config already having been initialized
Expand Down

0 comments on commit 963b525

Please sign in to comment.