Bug 77902

Summary: Sendmail's init script doesn't use the DAEMON var, set by /etc/sysconfig/sendmail
Product: [Retired] Red Hat Linux Reporter: Jesse Keating <jkeating>
Component: sendmailAssignee: Florian La Roche <laroche>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: jkeating
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-11-15 17:00:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch file for /etc/init.d/sendmail to use $DAEMON correctly none

Description Jesse Keating 2002-11-15 00:26:50 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2b)
Gecko/20021029 Phoenix/0.4

Description of problem:
/etc/sysconfig/sendmail sets a DAEMON var, to tell sendmail to start with -bd or
not.  /etc/init.d/sendmail doesn't use this var, so no matter what is set,
sendmail uses -bd anyway.

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


How reproducible:
Always

Steps to Reproduce:
1. Install RHL
2. View /etc/init.d/sendmail
	

Actual Results:  DAEMON is not used.

Expected Results:  DAEMON value should be checked, and sendmail will be started
using the right options.

Additional info:

Comment 1 Jesse Keating 2002-11-15 00:28:18 UTC
Created attachment 85148 [details]
Patch file for /etc/init.d/sendmail to use $DAEMON correctly

Comment 2 Stephen Walton 2002-11-15 17:00:12 UTC
It would be sufficient for the daemon line to be changed to the one from RedHat
7.3, viz:

       daemon /usr/sbin/sendmail $([ "$DAEMON" = yes ] && echo -bd) \
                                  $([ -n "$QUEUE" ] && echo -q$QUEUE)


Comment 3 Florian La Roche 2002-11-19 07:40:29 UTC
http://people.redhat.com/laroche/sendmail-8.12.6-3 has this fixed. Can you
please test if this works for you, otherwise open up a new bug-report?

Thanks,

Florian La Roche