Commit Graph

13 Commits

Author SHA1 Message Date
christos 156b02eae7 make postconf configurable 2006-09-07 15:26:08 +00:00
christos 4f593623cc - find the correct newaliases program from postconf
(suggested by Geert Hendrickx)
- only check for hash files.
2006-09-07 14:16:55 +00:00
christos e32e513967 Find the alias file name from the postfix configuration. From our anonymous
user.
2006-09-05 22:10:51 +00:00
christos 8ab9b7b454 PR/33760: dieter roelants: a default install can't send mail due to
missing aliases.db
2006-06-18 14:05:34 +00:00
mycroft 7d2e1537c5 Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
2004-08-13 18:08:03 +00:00
lukem 68909c287b Store the full path to the /usr/sbin/postfix in $postfix_command
and use the latter postfix_op() to implement start/stop/reload.
(We generally use full paths in rc.d scripts.)  Problem noted by Bill Squier.
2004-04-08 06:15:27 +00:00
lukem 2c589141ff Implement start_cmd as:
start_cmd="${name} "'${rc_arg}'
and stop_cmd & reload_cmd as:
	stop_cmd=$start_cmd
	reload_cmd=$start_cmd
(Just to be tricky)
2003-01-31 06:47:16 +00:00
lukem a402e4cd01 populate /var/spool/postfix/etc with /etc/{localtime,resolv.conf,services}.
per suggestion from perry.
2002-02-12 02:19:27 +00:00
lukem bd11504cb2 - only perform the checkyesno on the variable named in $rcvar (rather than
implicitly using $name if $rcvar isn't set), and always perform this check,
  even when using start_cmd (et al).
  this check is performed before the pidcmd
  is run, speeding up scripts that weren't going to be run anyway.
  this should speed up booting slow systems.

- take advantage of the above and remove
	start_precmd="checkyesno foo"
  in scripts that use start_cmd.

- explicitly set rcvar=foo in the rc.d/foo scripts which have an equivalent
  rc.conf entry

- fix `rcvar' and `restart' when $rcvar isn't set.
  these above changes fix PR [bin/11027].

- when doing `force*', ignore the return value of *_precmd.
  this fixes PR [bin/10781].

- rename what sysdb provides from `databases' to `sysdb', to reflect
  the name of the script.

- improve the comments in rc.subr
2000-09-19 13:04:38 +00:00
lukem 5c1b0ec207 Use load_rc_config() (from rc.subr) instead of sourcing /etc/rc.conf.
This allows us or a user to change the configuration file method in
one place - rc.subr - without having to edit all of the rc.d/* files.
2000-05-13 08:45:06 +00:00
lukem 32c9a44095 - use checkyesno in $start_precmd and change start_cmd to `postfix start'
- use $extra_commands instead of passing "reload" to run_rc_command
2000-04-30 12:21:00 +00:00
veego c9f5754ee8 You need to add a xxx_precmd with a checkyesno yyy if you use a xxx_cmd
in an rc.d script.
2000-04-27 20:58:26 +00:00
thorpej fad0a37405 Provide rc.d support for the Postfix mail system. Committed to the
base because there is no support for packages in rc.d, and Postfix
is supposed to become part of the base system anyhow.
2000-04-26 05:28:03 +00:00