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

set -e -x

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