Commit Graph

16 Commits

Author SHA1 Message Date
atatat a7627e5f06 Reorganize/clarify the configuration checks (and subsequent messages)
that might block startup, and be more permissive in general about
allowing the daemons to start.

Add some descriptive comments to the top of the smmsp script that
describe the purpose of the process.
2003-04-02 18:00:13 +00:00
atatat 9dc7b7c964 Tweak postinstall to check for (and help out on) the upgrade to
sendmail 8.12.8.  Some of the same machinery (in shorter form) is in
the additions to rc.d/sendmail.  Also, add a smmsp startup script for
the sendmail client queue runner.
2003-03-24 15:19:27 +00:00
lukem 852ef3de6f improve comment, and clean up a test 2002-02-12 01:26:36 +00:00
jmc c5ddb89d6e Patch from Hubert. aliases never get rebuilt if aliases.db is never originally generated. 2000-12-18 07:56:41 +00:00
nisimura 17e8cec25b Use && and || for logical concatenations instead of -a/-o test operators. 2000-10-09 06:11:38 +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
jdolecek 1c61a5d083 On sendmail start, check modification time of /etc/mail/aliases
and couple of other common map files and regenerate appropriate
*.db files as needed.
Idea taken from RedHat 6.2.
2000-09-14 21:03:17 +00:00
itojun 246f43dbbb use ${start_precmd} to check duplicate sendmail.cf.
do not use "err" on failure, it is not that fatal (it's okay if we
don't start sendmail)
2000-06-13 15:53:03 +00:00
itojun 609377a40f run sendmail under the following conditions:
- /etc/mail/sendmail.cf exists, no /etc/sendmail.cf
- /etc/mail/sendmail.cf exists, /etc/sendmail.cf same content as
  /etc/mail/sendmail.cf
die in other cases.  PR 10243.
2000-06-04 08:33:58 +00:00
itojun a7c4c34f96 refer PR 10100 for /etc/sendmail.cf check 2000-05-31 16:00:36 +00:00
tron d683136c9f Don't complain about existence of "/etc/sendmail.cf" if "sendmail" is
not set to "YES" in "/etc/rc.conf".
2000-05-15 06:16:04 +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
itojun 78565052f1 do not cope with pre-8.10 configuration file. do not start sendmail.
From: hubert
2000-05-03 17:03:10 +00:00
itojun 366bbade5a sync with sendmail upgrade.
- sendmail configuration files are in /etc/mail, not /etc.
- src/etc/aliases will be installed into /etc/mail/aliases (confusing)
- rc.d/sendmail warns if /etc/sendmail.cf exists.
2000-05-03 10:55:19 +00:00
lukem 0059d641e5 * replace daemon, login, servers with DAEMON, LOGIN, SERVERS
* remove sshd (it was from my private system)
2000-03-13 04:03:52 +00:00
lukem c53094a738 rc.d scripts derived from /etc/rc 2000-03-10 11:53:23 +00:00