mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
frr: add package
in place replacement for quagga Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# This is NOT the init script! This is the watchfrr start/stop/restart
|
||||
# command handler, passed to watchfrr with the -s/-r/-k commands. It is used
|
||||
# internally by watchfrr to start the protocol daemons with the appropriate
|
||||
# options.
|
||||
#
|
||||
# This script should be installed in /usr/sbin/watchfrr.sh
|
||||
|
||||
log_success_msg() {
|
||||
:
|
||||
}
|
||||
|
||||
log_warning_msg() {
|
||||
echo "$@" >&2
|
||||
[ -x /usr/bin/logger ] && echo "$@" \
|
||||
| /usr/bin/logger -t watchfrr.sh -p daemon.warn
|
||||
}
|
||||
|
||||
log_failure_msg() {
|
||||
echo "$@" >&2
|
||||
[ -x /usr/bin/logger ] && echo "$@" \
|
||||
| /usr/bin/logger -t watchfrr.sh -p daemon.err
|
||||
}
|
||||
|
||||
self="`dirname $0`"
|
||||
if [ -r "$self/frrcommon.sh" ]; then
|
||||
. "$self/frrcommon.sh"
|
||||
else
|
||||
. "/usr/sbin/frrcommon.sh"
|
||||
fi
|
||||
|
||||
chownfrr $V_PATH
|
||||
|
||||
frrcommon_main "$@"
|
||||
Reference in New Issue
Block a user