summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArthur Jones <arthur.jones@riverbed.com>2018-04-06 02:52:15 +0200
committerArthur Jones <arthur.jones@riverbed.com>2018-04-10 00:34:50 +0200
commit915c81b3ef426fd52ec138ad069ea1271052f209 (patch)
tree51d1000ba4b6bb29a5729dc2355dd39c7cf588c9 /tools
parentMerge pull request #2037 from coreswitch/master (diff)
downloadfrr-915c81b3ef426fd52ec138ad069ea1271052f209.tar.xz
frr-915c81b3ef426fd52ec138ad069ea1271052f209.zip
alpine packaging: use a more standard packaging format
Currently, we just package the frr daemons, but we don't run them. This is fine for basic tests, but it is inconvenient to orchestrate the daemons from downstream test environments. Here, we follow the redhat and debianpkg formats more closely, putting the daemons in /usr/lib/frr and including the frr user and groups in the package. We also include a docker specific startup script and a sysvinit link in /etc/init.d/frr for openrc based alpine installs. Testing done: Built packages, built base images, everything seems to work fine. Uninstalled the package, all the daemons stopped. Issue: https://github.com/FRRouting/frr/issues/2030 Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/frr4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/frr b/tools/frr
index 6de19a4bd..e6d5d1053 100755
--- a/tools/frr
+++ b/tools/frr
@@ -25,7 +25,9 @@ DAEMONS="zebra bgpd ripd ripngd ospfd ospf6d isisd babeld pimd ldpd nhrpd eigrpd
MAX_INSTANCES=5
RELOAD_SCRIPT=/usr/lib/frr/frr-reload.py
-. /lib/lsb/init-functions
+if [ -e /lib/lsb/init-functions ]; then
+ . /lib/lsb/init-functions
+fi
if [ -f /usr/lib/frr/ssd ]; then
SSD=/usr/lib/frr/ssd