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

set -e -x

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