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

set -e -x

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