Skip to content

Commit

Permalink
remove watchfrr debug
Browse files Browse the repository at this point in the history
Signed-off-by: karampok <karampok@gmail.com>
  • Loading branch information
karampok committed Dec 17, 2024
1 parent 45a5f48 commit a1ce9c5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 293 deletions.
21 changes: 3 additions & 18 deletions config/all-in-one/frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1172,25 +1172,10 @@ spec:
- mountPath: /etc/frr_reloader
name: reloader
- command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
21 changes: 3 additions & 18 deletions config/all-in-one/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1141,25 +1141,10 @@ spec:
- mountPath: /etc/frr_reloader
name: reloader
- command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
21 changes: 3 additions & 18 deletions config/frr-k8s/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,10 @@ spec:
# If the log file isn't created in 60 seconds the tail fails and the container is restarted.
# This workaround is needed to have the frr logs as part of kubectl logs -c frr < k8s-frr-podname >.
command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
Loading

0 comments on commit a1ce9c5

Please sign in to comment.