summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@nvidia.com>2021-08-30 21:21:32 +0200
committerQuentin Young <qlyoung@nvidia.com>2021-08-30 21:21:32 +0200
commit6793327f48df6818001c1cff21d84661eca3b778 (patch)
treebc6fc97c20d45eabc119068343ecc2760479c78e /docker
parentdocker: build libyang2 along with FRR (diff)
downloadfrr-6793327f48df6818001c1cff21d84661eca3b778.tar.xz
frr-6793327f48df6818001c1cff21d84661eca3b778.zip
docker: add expected log functions to alpine docker-start
Some basic functions are required by frrcommon.sh Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/alpine/docker-start14
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/alpine/docker-start b/docker/alpine/docker-start
index c20df42e8..698f4f93c 100755
--- a/docker/alpine/docker-start
+++ b/docker/alpine/docker-start
@@ -1,4 +1,18 @@
#!/bin/ash
+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 $(daemon_list)