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

set -e -x

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