diff options
Diffstat (limited to 'snapcraft/scripts/zebra-service')
-rw-r--r-- | snapcraft/scripts/zebra-service | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/snapcraft/scripts/zebra-service b/snapcraft/scripts/zebra-service new file mode 100644 index 000000000..9119a4055 --- /dev/null +++ b/snapcraft/scripts/zebra-service @@ -0,0 +1,16 @@ +#!/bin/sh + +set -e -x + +if ! [ -e $SNAP_DATA/zebra.conf ]; then + cp $SNAP/etc/frr/zebra.conf.default $SNAP_DATA/zebra.conf +fi +if ! [ -e $SNAP_DATA/vtysh.conf ]; then + cp $SNAP/etc/frr/vtysh.conf.default $SNAP_DATA/vtysh.conf +fi +exec $SNAP/sbin/zebra \ + -f $SNAP_DATA/zebra.conf \ + --pid_file $SNAP_DATA/zebra.pid \ + --socket $SNAP_DATA/zsock \ + --vty_socket $SNAP_DATA + |