summaryrefslogtreecommitdiffstats
path: root/snapcraft/scripts/pbrd-service
blob: a9265a1ae653dd80a78c592777e1c98809a74c61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e -x

if ! [ -e $SNAP_DATA/pbrd.conf ]; then
    cp $SNAP/etc/frr/pbrd.conf.default $SNAP_DATA/pbrd.conf
fi
exec $SNAP/sbin/pbrd \
    -f $SNAP_DATA/pbrd.conf \
    --pid_file $SNAP_DATA/pbrd.pid \
    --socket $SNAP_DATA/zsock \
    --vty_socket $SNAP_DATA