aboutsummaryrefslogtreecommitdiff
path: root/net/ifdepd
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2009-07-20 18:55:59 +0000
committerDoug Barton <dougb@FreeBSD.org>2009-07-20 18:55:59 +0000
commit3607947cce9a0aa23ea4f9e74c4ee17724bba123 (patch)
treedf8e3b47c4ac160e931df2fa322c8d38a987d5c6 /net/ifdepd
parentbcff5ac5ad8a37056590f44f78dbd3c4c220a5b0 (diff)
Notes
Diffstat (limited to 'net/ifdepd')
-rw-r--r--net/ifdepd/files/ifdepd.in24
1 files changed, 10 insertions, 14 deletions
diff --git a/net/ifdepd/files/ifdepd.in b/net/ifdepd/files/ifdepd.in
index 43d759444803..3b8972e89ebf 100644
--- a/net/ifdepd/files/ifdepd.in
+++ b/net/ifdepd/files/ifdepd.in
@@ -1,27 +1,25 @@
#!/bin/sh
#
-
+# $FreeBSD$
+#
# PROVIDE: ifdepd
# REQUIRE: netif routing
-# KEYWORD: FreeBSD shutdown
+# KEYWORD: shutdown
-#
# Add the following lines to /etc/rc.conf to enable ifdepd:
#
#ifdepd_enable="YES"
#ifdepd_src_ifaces="em0:em1"
#ifdepd_dst_ifaces="carp1"
-. /etc/rc.subr
+. %%RC_SUBR%%
name="ifdepd"
rcvar=`set_rcvar`
-command="/usr/local/bin/ifdepd"
-start_cmd="ifdepd_start"
-stop_cmd="ifdepd_stop"
-ifdepd_enable=${ifdepd_enable:-"NO"}
-load_rc_config $name
+command="%%PREFIX%%/bin/ifdepd"
+
+start_cmd="ifdepd_start"
ifdepd_start()
{
@@ -36,10 +34,8 @@ ifdepd_start()
fi
}
-ifdepd_stop()
-{
- echo 'Stopping ifdepd.'
- killall ifdepd
-}
+load_rc_config $name
+
+ifdepd_enable=${ifdepd_enable:"NO"}
run_rc_command "$1"