summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts/ospf6d-service
diff options
context:
space:
mode:
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
+