summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts/ospf6d-service
diff options
context:
space:
mode:
authorMartin Winter <mwinter@opensourcerouting.org>2017-01-25 22:23:43 +0100
committerMartin Winter <mwinter@opensourcerouting.org>2017-01-25 22:23:43 +0100
commit3ab11ecc7ba6de37393d334bf9f6cbc88a3eeec1 (patch)
tree9a7bfb39e158adde7f917b898cb10760ffe7bb96 /snapcraft/scripts/ospf6d-service
parentMerge pull request #120 from opensourcerouting/snapcraft-base-v3 (diff)
downloadfrr-3ab11ecc7ba6de37393d334bf9f6cbc88a3eeec1.tar.xz
frr-3ab11ecc7ba6de37393d334bf9f6cbc88a3eeec1.zip
snapcraft: Add snapcraft build and definition files
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Diffstat (limited to 'snapcraft/scripts/ospf6d-service')
-rw-r--r--snapcraft/scripts/ospf6d-service13
1 files changed, 13 insertions, 0 deletions
diff --git a/snapcraft/scripts/ospf6d-service b/snapcraft/scripts/ospf6d-service
new file mode 100644
index 000000000..4dc3cb084
--- /dev/null
+++ b/snapcraft/scripts/ospf6d-service
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e -x
+
+if ! [ -e $SNAP_DATA/ospf6d.conf ]; then
+ cp $SNAP/etc/frr/ospf6d.conf.default $SNAP_DATA/ospf6d.conf
+fi
+exec $SNAP/sbin/ospf6d \
+ -f $SNAP_DATA/ospf6d.conf \
+ --pid_file $SNAP_DATA/ospf6d.pid \
+ --socket $SNAP_DATA/zsock \
+ --vty_socket $SNAP_DATA
+