summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts/vrrpd-service
diff options
context:
space:
mode:
Diffstat (limited to 'snapcraft/scripts/vrrpd-service')
-rw-r--r--snapcraft/scripts/vrrpd-service13
1 files changed, 13 insertions, 0 deletions
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
+