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

set -e -x

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