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

set -e -x

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