Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#45005 - [postfix] No Restart=always in service file
Attached to Project:
Arch Linux
Opened by Sébastien Luttringer (seblu) - Monday, 18 May 2015, 17:50 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 04 July 2015, 03:34 GMT
Opened by Sébastien Luttringer (seblu) - Monday, 18 May 2015, 17:50 GMT
Last edited by Gaetan Bisson (vesath) - Saturday, 04 July 2015, 03:34 GMT
|
DetailsHello,
I would suggest to remove the Restart=always in the postfix service. I don't know if it's necessary to underline why this should not be the default ? Cheers, |
This task depends upon
Closed by Gaetan Bisson (vesath)
Saturday, 04 July 2015, 03:34 GMT
Reason for closing: Won't implement
Saturday, 04 July 2015, 03:34 GMT
Reason for closing: Won't implement
2) For comparison, in our repositories, we have 322 services files; with only 20 packages with Restart=always.
The wiki page you link to reads "Some corner case may be found in vital daemons." and I argue that a mail server is definitely one of these. The common case is for system administrators to want their mail servers to be automatically restarted, and this is what our default service file should implement. However, as your wiki page says, the administrator is free to override this if they wish.
IMHO, the mailer daemons are not critical, likewise for almost all daemons; the context where they are used may be critical or important.
A mailer daemon on a my firewall, is not critical, but the one on my MX server is. We can argue that any daemon can be critical for some reasons.
I named critical daemons those which are mandatory to get back access to your computer. Because you need them to fix the issue.
I think it's a mistake to try to define if a daemon is critical or not in order to choose the default.
Possibly, for a know daemon which exits erratically, Restart= could be used. But postfix is stable, I never saw it crashes since the decade I use it. Moreover it is used in many UNIX systems which doesn't offer a Restart feature. Even Arch, some years ago, use it without auto restart. By default this daemon is renowned working.
I also take in consideration that auto restart hides errors and degradation of a service. I'm persuaded that trying to hide should not be the default.
We should reserve masking errors to a deliberate choice. "Explicit is better than implicit".
As an example, the issue I got recently with postfix, which led to this BR, was not fixed by the Restart=always. Quite the opposite.
I'm curious, did this feature already help you to prevent a postfix breakage? In the case of my mx service, I have multiple postfix daemons on multiple machines.
This is what a critical service deserve.
Why should sshd be automatically restarted but not postfix? Is having to reboot your server that much worse than losing mail?
If you insist to have Restart=always removed from postfix.service, I suggest we have a poll on arch-dev-public to ask devs and TUs that have postfix installed whether they want that option on by default.