Skip to content
Snippets Groups Projects
Commit 963b525d authored by David Schmitz's avatar David Schmitz
Browse files

exabgp support: allow for enabling of exabgp during runtime with supervisord

parent 34a3cd91
No related branches found
No related tags found
No related merge requests found
...@@ -277,6 +277,13 @@ EOF ...@@ -277,6 +277,13 @@ EOF
add_line1="autostart=false" add_line1="autostart=false"
fi fi
enable1=0
if [ "$1" != "${1#--enable}" ]; then
enable1=1
shift 1
shift_count=$(( $shift_count + 1 ))
fi
user_line= user_line=
if [ -n "$FOD_SYSUSER" ]; then if [ -n "$FOD_SYSUSER" ]; then
user_line="user=$FOD_SYSUSER" user_line="user=$FOD_SYSUSER"
...@@ -294,6 +301,11 @@ stdout_logfile=./log/exabgp-stdout.log ; stdout log path, NONE for none; ...@@ -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 stderr_logfile=./log/exabgp-stderr.log ; stderr log path, NONE for none; default AUTO
EOF EOF
if [ "$enable1" = 1 ]; then
supervisorctl reload
supervisorctl start exabgp
fi
fi fi
elif [ "$1" = "--run0" ]; then # assumes config already having been initialized elif [ "$1" = "--run0" ]; then # assumes config already having been initialized
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment