Bug 98016

Summary: service sendmail reload does a restart
Product: [Retired] Red Hat Linux Reporter: Stephen Samuel <samuel>
Component: sendmailAssignee: Florian La Roche <laroche>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: oliver, p.van.egdom
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-01-13 09:35:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch for /etc/rc.d/init.d/sendmail
none
New patch for /etc/rc.d/init.d/sendmail none

Description Stephen Samuel 2003-06-25 15:19:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030529

Description of problem:
I expect `service sendmail reload` to simply reload sendmail.
Instead, it does a complete shutdown and restart.
I realize that the difference is somewhat minimal, but why not 
be correct?



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

How reproducible:
Always

Steps to Reproduce:
1. service sendmail reload
2.
3.
    

Actual Results:  Shutting down sendmail:                                    [  OK  ]
Shutting down sm-client:                                   [  OK  ]
Starting sendmail:                                         [  OK  ]
Starting sm-client:                                        [  OK  ]


Expected Results:  reloading sendmail:                                        [
 OK  ]
reloading  sm-client:                                      [  OK  ]


Additional info: Patch included (next)

Comment 1 Stephen Samuel 2003-06-25 15:24:31 UTC
Created attachment 92611 [details]
Patch for /etc/rc.d/init.d/sendmail

Comment 2 Florian La Roche 2003-06-25 23:00:41 UTC
*** Bug 84165 has been marked as a duplicate of this bug. ***

Comment 3 Oliver Schulze L. 2003-06-25 23:09:28 UTC
Please respect presedence of bugs.
Bug #84165 was created before this bug.

Comment 4 Stephen Samuel 2003-06-25 23:30:17 UTC
Created attachment 92623 [details]
New patch for /etc/rc.d/init.d/sendmail 

now also does database rebuilds

Comment 5 Oliver Schulze L. 2003-06-25 23:49:17 UTC
This bug is very similar to bug #84165. Because what the reporter really wants
is a real reload function.
The reload function is mean to tell a running service to reread all config files.
This includes all files in /etc/mail
The file /etc/aliases already have a mean for reloading(i.e. newaliases)

Comment 6 Oliver Schulze L. 2003-06-26 00:14:00 UTC
Great patch.
You have fixed bug #84165
I don't know if your patch should go to this bug(RH9) or the bug #84165 (RH7.3)
Will try to port your patch to RH7.3

Comment 7 Oliver Schulze L. 2003-06-26 00:24:24 UTC
Regarding the 2nd attach:
- there is a call to the daemon function in reload
- maybe the RETVAL should be checked before the sm-client is reloaded:
  if [ $RETVAL -eq 0 ] && [ -f /var/run/sm-client.pid ] ; then
    # Reload sm-client
- if $RETVAL is defined outside the reload funtion, there is no need to asing
the exit code of the reload function the case() statement:
  reload)
	reload
	;;


I finished porting the patch to RH7.3, will test and post the patch in a few
minutes.

Comment 8 Thomas Woerner 2004-01-13 09:35:25 UTC
Fixed in rawhide in rpm sendmail-8.12.10-7 or newer.