Bug 86005 - /etc/init.d/sendmail uses default "make" target
/etc/init.d/sendmail uses default "make" target
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: sendmail (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Florian La Roche
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-03-11 23:09 EST by H. Peter Anvin
Modified: 2007-04-18 12:51 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-26 05:33:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Sample site-specific Makefile (1.55 KB, text/plain)
2003-03-11 23:11 EST, H. Peter Anvin
no flags Details

  None (edit)
Description H. Peter Anvin 2003-03-11 23:09:53 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030211

Description of problem:
It is quite common practice to have /etc/mail/Makefile build site-specific
configurations, e.g. antispam access control lists.  It's very convenient for
the system administrator if a simple "make" can rebuild all these files and
restart sendmail.

Unfortunately, in recent RedHat versions the sendmail startup script calls "make
-s" in /etc/mail, resulting in an infinite loop.

I would like to strongly recommend that the startup scripts use a named target
instead (I use the name "auto") and leave the default target for use by the
system administrator.

This is a RedHat concern, because this requires a small change to the standard
init scripts, lest every time sendmail is updated because of a security hole the
sysadmin has to go in and patch the startup script again.

Version-Release number of selected component (if applicable):
sendmail-8.12.8-1.80

How reproducible:
Always

Steps to Reproduce:
1. Install the attached Makefile as /etc/mail/Makefile
2. Type "make"

    

Actual Results:  Infinite loop

Expected Results:  The files should have been constructed and sendmail restarted.

Additional info:

See also bug 85875.
Comment 1 H. Peter Anvin 2003-03-11 23:11:31 EST
Created attachment 90569 [details]
Sample site-specific Makefile

RedHat may want to steal some ideas from this script, in particular the "stop",
"start" and "restart" targets are handy.
Comment 2 Florian La Roche 2003-03-26 05:33:38 EST
I have change the startup script to use the target "all" and added
start/stop/restart targets

greetings,

Florian La Roche

Note You need to log in before you can comment on or make changes to this bug.