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

set -e -x

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