diff options
Diffstat (limited to 'net/quagga/files/watchquagga.sh.in')
-rw-r--r-- | net/quagga/files/watchquagga.sh.in | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net/quagga/files/watchquagga.sh.in b/net/quagga/files/watchquagga.sh.in new file mode 100644 index 000000000000..3545ecdd6f49 --- /dev/null +++ b/net/quagga/files/watchquagga.sh.in @@ -0,0 +1,39 @@ +#!/bin/sh +# + +# PROVIDE: watchquagga +# REQUIRE: netif routing mountcritlocal quagga +# BEFORE: NETWORKING +# KEYWORD: FreeBSD NetBSD + +# +# Add the following line to /etc/rc.conf to enable quagga: +#watchquagga_enable="YES" +# +# You may also wish to use the following variables to fine-tune startup: +#watchquagga_flags="" +# +# + +. %%RC_SUBR%% + +name="watchquagga" +rcvar=`set_rcvar` + + +stop_postcmd=stop_postcmd + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +watchquagga_enable=${watchquagga_enable:-"NO"} +watchquagga_flags=${watchquagga_flags:-""} +load_rc_config $name + +command=%%PREFIX%%/sbin/watchquagga +pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid +run_rc_command "$1" |