]> git.proxmox.com Git - mirror_frr.git/blame - tools/watchfrr.sh.in
lib: add frr-isisd to the native models
[mirror_frr.git] / tools / watchfrr.sh.in
CommitLineData
ea4d91bf
DL
1#!/bin/sh
2#
3# This is NOT the init script! This is the watchfrr start/stop/restart
4# command handler, passed to watchfrr with the -s/-r/-k commands. It is used
5# internally by watchfrr to start the protocol daemons with the appropriate
6# options.
7#
8# This script should be installed in @CFG_SBIN@/watchfrr.sh
9
10log_success_msg() {
11 :
12}
13
14log_warning_msg() {
15 echo "$@" >&2
16 [ -x /usr/bin/logger ] && echo "$@" \
17 | /usr/bin/logger -t watchfrr.sh -p daemon.warn
18}
19
20log_failure_msg() {
21 echo "$@" >&2
22 [ -x /usr/bin/logger ] && echo "$@" \
23 | /usr/bin/logger -t watchfrr.sh -p daemon.err
24}
25
26self="`dirname $0`"
27if [ -r "$self/frrcommon.sh" ]; then
28 . "$self/frrcommon.sh"
29else
30 . "@CFG_SBIN@/frrcommon.sh"
31fi
32
33frrcommon_main "$@"