Bug 98016 - service sendmail reload does a restart
Summary: service sendmail reload does a restart
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sendmail
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Florian La Roche
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-06-25 15:19 UTC by Stephen Samuel
Modified: 2007-04-18 16:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Last Closed: 2004-01-13 09:35:25 UTC

Attachments (Terms of Use)
Patch for /etc/rc.d/init.d/sendmail (580 bytes, patch)
2003-06-25 15:24 UTC, Stephen Samuel
no flags Details | Diff
New patch for /etc/rc.d/init.d/sendmail (990 bytes, patch)
2003-06-25 23:30 UTC, Stephen Samuel
no flags Details | Diff

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):

How reproducible:

Steps to Reproduce:
1. service sendmail reload

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:

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

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

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