]> git.proxmox.com Git - mirror_frr.git/blame - debianpkg/tests/daemons
debian: move changelog out of the way
[mirror_frr.git] / debianpkg / tests / daemons
CommitLineData
4d916382
DS
1#!/bin/bash
2#---------------
d8e4c438 3# Testing frr
4d916382
DS
4#---------------
5set -e
6
7# modify config file to enable all daemons and copy config files
d8e4c438 8CONFIG_FILE=/etc/frr/daemons
11364de5 9DAEMONS=("zebra" "bgpd" "ospfd" "ospf6d" "ripd" "ripngd" "isisd" "pimd")
4d916382
DS
10
11for daemon in "${DAEMONS[@]}"
12do
13 sed -i -e "s/${daemon}=no/${daemon}=yes/g" $CONFIG_FILE
d8e4c438 14 cp /usr/share/doc/frr/examples/${daemon}.conf.sample /etc/frr/${daemon}.conf
4d916382
DS
15done
16
d8e4c438
DS
17# reload frr
18/etc/init.d/frr restart > /dev/null 2>&1
4d916382
DS
19
20# check daemons
21for daemon in "${DAEMONS[@]}"
22do
23 echo -n "check $daemon - "
24 if pidof -x $daemon > /dev/null; then
25 echo "${daemon} OK"
26 else
27 echo "ERROR: ${daemon} IS NOT RUNNING"
28 exit 1
29 fi
30done