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

set -e -x

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