mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
- Enhancement rc scripts, bump PORTREVISION
PR: ports/100421 Submitted by: maintainer
This commit is contained in:
parent
5118c2ac37
commit
84b5fba371
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168084
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= quagga
|
||||
PORTVERSION= 0.99.4
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net ipv6
|
||||
MASTER_SITES= http://quagga.net/download/
|
||||
|
||||
|
@ -2,9 +2,7 @@
|
||||
#
|
||||
|
||||
# PROVIDE: quagga
|
||||
# REQUIRE: netif routing mountcritlocal
|
||||
# BEFORE: NETWORKING
|
||||
# KEYWORD: shutdown
|
||||
# REQUIRE: NETWORKING
|
||||
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable quagga:
|
||||
@ -13,6 +11,10 @@
|
||||
# You may also wish to use the following variables to fine-tune startup:
|
||||
#quagga_flags="-d"
|
||||
#quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"
|
||||
# Per daemon tuning may be done with daemon_name_flags
|
||||
#zebra_flags="-dP 0"
|
||||
#bgpd_flags="-dnrP 0" and so on
|
||||
#
|
||||
#
|
||||
# If the quagga daemons require additional shared libraries to start,
|
||||
# use the following variable to run ldconfig(8) in advance:
|
||||
@ -34,12 +36,13 @@ stop_postcmd()
|
||||
|
||||
# set defaults
|
||||
|
||||
quagga_enable=${quagga_enable:-"NO"}
|
||||
quagga_flags=${quagga_flags:-"-d"}
|
||||
quagga_daemons=${quagga_daemons:-"zebra ripd ripngd ospfd ospf6d bgpd isisd"}
|
||||
quagga_extralibs_path=${quagga_extralibs_path:-""}
|
||||
load_rc_config $name
|
||||
|
||||
: ${quagga_enable="NO"}
|
||||
: ${quagga_flags="-d"}
|
||||
: ${quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"}
|
||||
: ${quagga_extralibs_path=""}
|
||||
|
||||
quagga_cmd=$1
|
||||
|
||||
case "$1" in
|
||||
@ -72,5 +75,6 @@ for daemon in ${quagga_daemons}; do
|
||||
if [ ${quagga_cmd} = "stop" -a -z $(check_process ${command}) ]; then
|
||||
continue
|
||||
fi
|
||||
eval flags=\$\{${daemon}_flags:-\"${quagga_flags}\"\}
|
||||
run_rc_command "$1"
|
||||
done
|
||||
|
@ -2,9 +2,7 @@
|
||||
#
|
||||
|
||||
# PROVIDE: watchquagga
|
||||
# REQUIRE: netif routing mountcritlocal quagga
|
||||
# BEFORE: NETWORKING
|
||||
# KEYWORD: shutdown
|
||||
# REQUIRE: NETWORKING quagga
|
||||
|
||||
#
|
||||
# Add the following line to /etc/rc.conf to enable quagga:
|
||||
@ -30,10 +28,11 @@ stop_postcmd()
|
||||
|
||||
# set defaults
|
||||
|
||||
watchquagga_enable=${watchquagga_enable:-"NO"}
|
||||
watchquagga_flags=${watchquagga_flags:-""}
|
||||
load_rc_config $name
|
||||
|
||||
: ${watchquagga_enable="NO"}
|
||||
: ${watchquagga_flags=""}
|
||||
|
||||
command=%%PREFIX%%/sbin/watchquagga
|
||||
pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid
|
||||
run_rc_command "$1"
|
||||
|
Loading…
Reference in New Issue
Block a user