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

set -e -x

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