Subject: Re: rc.d Qn
To: Ron Roskens <roskens@elfin.net>
From: Luke Mewburn <lukem@wasabisystems.com>
List: netbsd-users
Date: 04/11/2002 13:37:48
On Wed, Apr 10, 2002 at 02:30:08PM -0500, Ron Roskens wrote:
|
| One of the cool features added recently, was the addition of a "$procname"
| variable. With this you can have your main script as the $command and
| $procame can be the final process name. Very useful when starting
| processes via scripts. One additional benefit of this is that you can
| still specify a user to run the script as. If you overwrite the *_start
| and *_stop functions, it negates this functionality.
For $commands which are interpreted scripts, it's even better to set
$command_interpreter, which I recently added. For example, if your
script has
#/usr/pkg/bin/perl
then set
command_interpreter=/usr/pkg/bin/perl
in the rc.d script.
Luke.