| Summary: | Startup entries in /etc/rcd.0-6 are removed when updating the package version. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Holden <redhat> |
| Component: | postfix | Assignee: | Jaroslav Škarvada <jskarvad> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | jskarvad, mlichvar |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-11 06:28:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike Holden
2011-09-30 19:16:59 UTC
F14 is EOL. I checked on F15 and I was unable to reproduce. From f16 and up postfix was switched to systemd unit file. The problem could be caused by wrong alternatives settings. I did on F15:
# alternatives --config mta
# chkconfig --list postfix
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# yum upgrade postfix
# chkconfig --list postfix
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Thus I am closing this as works for me. If the problem persists feel free to reopen.
I've now upgraded to F16, and guess what, aster upgrading postfix, it was again removed from startup, so I had no mail after a reboot. Either something is screwy, or I'm doing something wrong?
chkconfig show the following, showing that it is now a systemd service, no problem with that:
[root@jewel ~]# chkconfig --list postfix
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
service postfix supports chkconfig, but is not referenced in any runlevel (run 'chkconfig --add postfix')
However:
[root@jewel ~]# systemctl status postfix.service
postfix.service - LSB: start and stop postfix
Loaded: loaded (/etc/rc.d/init.d/postfix)
Active: active (running) since Tue, 03 Jul 2012 23:15:46 +0100; 1 day and 21h ago
Main PID: 10079 (master)
CGroup: name=systemd:/system/postfix.service
├ 10079 /usr/libexec/postfix/master
├ 10082 qmgr -l -t fifo -u
└ 23867 pickup -l -t fifo -u
[root@jewel ~]# systemctl enable postfix.service
postfix.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig postfix on
[root@jewel ~]# !chkc
chkconfig --list postfix
Note: This output shows SysV services only and does not include native
systemd services. SysV configuration data might be overridden by native
systemd configuration.
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
This output seems to imply that it isn't a systemd service either, so it calls back to chkconfig to enable it.
(In reply to comment #2) > I've now upgraded to F16, and guess what, aster upgrading postfix, it was > again removed from startup, so I had no mail after a reboot. Either > something is screwy, or I'm doing something wrong? > Is there sendmail or another MTA installed? If yes, you need to switch the postfix to be your default MTA via alternatives, otherwise the postfix will be switched off during updates, e.g.: # alternatives --config mta and select postfix. Verify with: # alternatives --display mta There should be: mta - status is manual. link currently points to /usr/sbin/sendmail.postfix ... > This output seems to imply that it isn't a systemd service either, so it calls > back to chkconfig to enable it. > Sure, it was converted to native systemd in f17. That would appear to be the issue. It was set for sendmail. I guess I find out next time I upgrade postfix! Thanks for info, closing as notabug for now. Feel free to reopen if the issue persists. |