diff options
author | Martin Winter <mwinter@opensourcerouting.org> | 2019-11-09 16:27:04 +0100 |
---|---|---|
committer | Martin Winter <mwinter@opensourcerouting.org> | 2019-11-19 10:46:33 +0100 |
commit | 7b9e46d493251f2a58d8ed2f3890ca3397502b92 (patch) | |
tree | c375bcffaf7333dd77189d8b74e26c65c27b6091 /snapcraft/scripts | |
parent | Merge pull request #5298 from donaldsharp/bgp_prefix_rpki (diff) | |
download | frr-7b9e46d493251f2a58d8ed2f3890ca3397502b92.tar.xz frr-7b9e46d493251f2a58d8ed2f3890ca3397502b92.zip |
snapcraft: Add vrrpd to the snapcraft package
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'snapcraft/scripts')
-rw-r--r-- | snapcraft/scripts/Makefile | 1 | ||||
-rw-r--r-- | snapcraft/scripts/vrrpd-service | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/snapcraft/scripts/Makefile b/snapcraft/scripts/Makefile index 7ddb7f076..0435b3bc5 100644 --- a/snapcraft/scripts/Makefile +++ b/snapcraft/scripts/Makefile @@ -18,6 +18,7 @@ install: install -D -m 0755 staticd-service $(DESTDIR)/bin/ install -D -m 0755 bfdd-service $(DESTDIR)/bin/ install -D -m 0755 fabricd-service $(DESTDIR)/bin/ + install -D -m 0755 vrrpd-service $(DESTDIR)/bin/ install -D -m 0755 set-options $(DESTDIR)/bin/ install -D -m 0755 show_version $(DESTDIR)/bin/ diff --git a/snapcraft/scripts/vrrpd-service b/snapcraft/scripts/vrrpd-service new file mode 100644 index 000000000..1f60d1146 --- /dev/null +++ b/snapcraft/scripts/vrrpd-service @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e -x + +if ! [ -e $SNAP_DATA/vrrpd.conf ]; then + cp $SNAP/etc/frr/vrrpd.conf.default $SNAP_DATA/vrrpd.conf +fi +exec $SNAP/sbin/vrrpd \ + -f $SNAP_DATA/vrrpd.conf \ + --pid_file $SNAP_DATA/vrrpd.pid \ + --socket $SNAP_DATA/zsock \ + --vty_socket $SNAP_DATA + |