summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts/pim6d-service
diff options
context:
space:
mode:
Diffstat (limited to 'snapcraft/scripts/pim6d-service')
-rw-r--r--snapcraft/scripts/pim6d-service12
1 files changed, 12 insertions, 0 deletions
diff --git a/snapcraft/scripts/pim6d-service b/snapcraft/scripts/pim6d-service
new file mode 100644
index 0000000..386c616
--- /dev/null
+++ b/snapcraft/scripts/pim6d-service
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e -x
+
+if ! [ -e $SNAP_DATA/pim6d.conf ]; then
+ cp $SNAP/etc/frr/pim6d.conf.default $SNAP_DATA/pim6d.conf
+fi
+exec $SNAP/sbin/pim6d \
+ -f $SNAP_DATA/pim6d.conf \
+ --pid_file $SNAP_DATA/pim6d.pid \
+ --socket $SNAP_DATA/zsock \
+ --vty_socket $SNAP_DATA