File: staticd-service

package info (click to toggle)
frr 10.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 77,024 kB
  • sloc: ansic: 687,126; python: 226,152; perl: 6,379; sh: 2,685; cpp: 1,883; makefile: 670; yacc: 397; lex: 363; lisp: 66; xml: 35; javascript: 8
file content (20 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e -x

if ! [ -e $SNAP_DATA/staticd.conf ]; then
    if [ -e $SNAP_DATA/zebra.conf ]; then
        # if we have a zebra.conf, but no staticd conf, then we use
        # this file as the default config for staticd
        cp $SNAP_DATA/zebra.conf $SNAP_DATA/staticd.conf
    else
        # new config, start with template
        cp $SNAP/etc/frr/staticd.conf $SNAP_DATA/staticd.conf
    fi
fi
exec $SNAP/sbin/staticd \
    -f $SNAP_DATA/staticd.conf \
    --pid_file $SNAP_DATA/staticd.pid \
    --socket $SNAP_DATA/zsock \
    --vty_socket $SNAP_DATA