Subject: Re: disabling postfix in base
To: micrun <mkj@micrun.net>
From: Greg Troxel <gdt@ir.bbn.com>
List: netbsd-users
Date: 07/10/2007 09:23:49
I have had
(insert-file "/etc/rc.conf.d/postfix"):
postfix_command="/usr/pkg/sbin/${name}"
for a long time on several systems, and been running pkgsrc postfix just
fine.
The load_rc_config at the end overrides the standard variable settings.
I don't think it's necessary to set start/stop/reload as the normal
/etc/rc.d/postfix sets them to
start_cmd="postfix_op"
stop_cmd="postfix_op"
reload_cmd="postfix_op"
and
postfix_op()
{
${postfix_command} ${rc_arg}
}
Probably one should set
required_files="/usr/pkg/etc/${name}/main.cf"
but I've never had trouble since the original is from the distribution
and I have a config file in pkgsrc.