aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-07-21 02:55:59 +0800
committerdougb <dougb@FreeBSD.org>2009-07-21 02:55:59 +0800
commit05fd700a5dae2864b22af2cd18aa477f34f7c24d (patch)
treeae80d4adbfcb5e665bbceaf8708d4163ca1fef02
parent8e0f4bc686aed4e334ae794702d21a0af83b4b3b (diff)
downloadfreebsd-ports-gnome-05fd700a5dae2864b22af2cd18aa477f34f7c24d.tar.gz
freebsd-ports-gnome-05fd700a5dae2864b22af2cd18aa477f34f7c24d.tar.zst
freebsd-ports-gnome-05fd700a5dae2864b22af2cd18aa477f34f7c24d.zip
Tune up the rc.d script a little:
1. Add a $FreeBSD Id 2. Remove the spurious FreeBSD KEYWORD 3. s#/etc/rc.subr#%%RC_SUBR%%# 4. s#/usr/local#%%PREFIX%%# 5. Move load_rc_config to after the method definition and move the default _enable assignment after it. 6. The _stop method was a less efficient version of the default, so remove it
-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"