Bug 98016
| Summary: | service sendmail reload does a restart | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Stephen Samuel <samuel> | ||||||
| Component: | sendmail | Assignee: | Florian La Roche <laroche> | ||||||
| Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 9 | CC: | 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: |
|
||||||||
Created attachment 92611 [details]
Patch for /etc/rc.d/init.d/sendmail
*** Bug 84165 has been marked as a duplicate of this bug. *** Please respect presedence of bugs. Bug #84165 was created before this bug. Created attachment 92623 [details]
New patch for /etc/rc.d/init.d/sendmail
now also does database rebuilds
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) 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 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.
Fixed in rawhide in rpm sendmail-8.12.10-7 or newer. |
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)