Robert Felber writes:

On Sun, Feb 18, 2007 at 12:56:33AM -0500, Francisco Reyes wrote:
P.s. I know about the init script issue with FreeBSD, somehow rc does not like names with "-". I'd rather like to see rc patched, but I will submit a patch for the policyd-weight init script.


I upgraded FreeBSD to 6.2 stable and since I had to restart I tried changing the policyd-weight rc.d script to see if switching dash to underscore would work.

Upon reboot the boot process froze at the policyd-weight script.
No biggie, just wanted to pass the info.

The script, after I changed it looked like:
------
. /etc/rc.subr

name="policyd_weight"
rcvar=policyd_weight_enable

stop_cmd=policyd_weight_stop

# defaults
policyd_weight_enable=${policyd_weight_enable:-"NO"}

load_rc_config "policyd_weight"

case "$policyd_weight_enable" in
   [Yy][Ee][Ss] | 1 | [Oo][Nn] | [Tt][Rr][Uu][Ee]) ;;
   *) echo "To make use of $name set $rcvar=\"YES\" in /etc/rc.conf" ;;
esac

policyd_weight_progname="/usr/local/libexec/postfix/policyd-weight"
command=/usr/local/libexec/postfix/policyd-weight
pidfile=/var/run/policyd-weight.pid

policyd_weight_stop() {
   echo "Stopping $name"
   $policyd_weight_progname stop
}

run_rc_command "$1"

____________________________________________________________
Policyd-weight Mailinglist - http://www.policyd-weight.org/

Reply via email to