From 3645513107afb90d956b4b3843a780daa7272dd1 Mon Sep 17 00:00:00 2001 From: dougb Date: Sat, 14 Jan 2012 02:18:41 +0000 Subject: Prepare for the removal of set_rcvar() by changing the rcvar= assignments to the literal values it would have returned. The concept of set_rcvar() was nice in theory, but the forks it creates are a drag on the startup process, which is especially noticeable on slower systems, such as embedded ones. During the discussion on freebsd-rc@ a preference was expressed for using ${name}_enable instead of the literal values. However the code portability concept doesn't really apply since there are so many other places where the literal name has to be searched for and replaced. Also, using the literal value is also a tiny bit faster than dereferencing the variables, and every little bit helps. --- etc/rc.d/watchdogd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/rc.d/watchdogd') diff --git a/etc/rc.d/watchdogd b/etc/rc.d/watchdogd index e852126..043e5bc 100755 --- a/etc/rc.d/watchdogd +++ b/etc/rc.d/watchdogd @@ -34,7 +34,7 @@ . /etc/rc.subr name="watchdogd" -rcvar="`set_rcvar`" +rcvar="watchdogd_enable" command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" -- cgit v1.1