Subject: Re: rc.d scripts and "shutdown" keyword
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Luke Mewburn <lukem@netbsd.org>
List: current-users
Date: 02/12/2002 00:58:19
On Mon, Feb 11, 2002 at 03:55:11PM +0200, Martti Kuparinen wrote:
  | Hi!
  | 
  | I've changed (ver 1.2) the newly added /etc/rc.d/ipfs script
  | to check if ipfs=YES in rc.conf. Without this fix the script
  | might complain about unset $ipfs.
  | 
  | The ipfs script is always executed because of the "shutdown"
  | keyword. And now my question: is there any better way to
  | handle this (i.e. scripts which are always executed even
  | though the corresponding variable might be unset)?

I've backed out that change, because it's not correct.

There's a reason for the warning about an unset variable; it
generally means that the user has an out-of-date
/etc/defaults/rc.conf.

Luke.