Bug 1209009 - OpenDKIM won't start on boot if SQL datasets are used because of systemd service dependencies
Summary: OpenDKIM won't start on boot if SQL datasets are used because of systemd serv...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: opendkim
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Jenkins
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-05 05:37 UTC by George Notaras
Modified: 2015-05-08 16:41 UTC (History)
1 user (show)

Fixed In Version: opendkim-2.10.1-13.el7
Clone Of:
Environment:
Last Closed: 2015-04-18 09:32:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description George Notaras 2015-04-05 05:37:51 UTC
Description of problem:

If SQL (MySQL, PostgreSQL) datasets are used in the the opendkim configuration, the service won't start after a reboot. This happens without any error or warning message.

Adding an override of the opendkim systemd service at /etc/systemd/system/opendkim.service with the following contents resolves the issue:

~~~~~~~~~~~~~~~~~~
.include /usr/lib/systemd/system/opendkim.service

[Unit]
After=mariadb.service
~~~~~~~~~~~~~~~~~~

A similar dependency should be necessary for the PostgreSQL service, if PostgreSQL datasets are used.

However, I am not sure if this is a bug, since the default opendkim configuration file does not use SQL datasets.

But truth is that if this is missing the user has very little information about why the opendkim service does not start after a reboot.

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

opendkim-2.10.1-7

Comment 1 Steve Jenkins 2015-04-05 17:29:59 UTC
Hi, George. 

You're right that it's probably not technically a "bug" (for the reason you mentioned), however I'm thinking at the very least I should mention it in the README.Fedora file -- and possibly include some commented elements in the service file that can be uncommented for those who might need it.

Comment 2 George Notaras 2015-04-06 04:52:05 UTC
Hello Steve,

I also think that adding some notes in the service file is a good resolution. 

However, because opendkim does not output a message that it cannot find the database server, it is very possible that the user has no clue that it is a systemd dependency issue and might not search for info in the service file.

In this regard, I'd suggest to also add a note in the configuration file or in an extra README.SQL documentation file.

With this bug report I just wanted to bring the issue to your attention. I'm not aware of the recent Fedora Packager Guidelines and do not really know what is the best resolution for such issues.

Ideally, opendkim should print an error message about not being able to find the database. That could be a good resolution, so maybe also filing a bug report in their bug tracker would be a good idea.

Kind Regards,

George

Comment 3 Steve Jenkins 2015-04-06 16:33:24 UTC
Hi George,

I've filed a ticket upstream:

https://sourceforge.net/p/opendkim/bugs/224/

Please feel free to chime in over there if I'm missing anything that might be of help to the upstream developers... or even if there isn't and you just wanna throw in a +1. :)

Comment 4 Steve Jenkins 2015-04-07 05:12:20 UTC
Hoping that the next version of OpenDKIM will spit out an error if it can't find the database on startup (I'm buddies with the developer so I'll harass him), but until then some notes in the README.Fedora file and the service file might just have to do.

About to push an update that fixes this as well as the "build --with-odbx" bug.

Comment 5 Fedora Update System 2015-04-07 05:22:02 UTC
opendkim-2.10.1-12.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.fc21

Comment 6 Fedora Update System 2015-04-07 05:22:32 UTC
opendkim-2.10.1-12.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.el5

Comment 7 Fedora Update System 2015-04-07 05:22:58 UTC
opendkim-2.10.1-12.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.fc20

Comment 8 Fedora Update System 2015-04-07 05:23:23 UTC
opendkim-2.10.1-12.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.el6

Comment 9 Fedora Update System 2015-04-07 05:23:49 UTC
opendkim-2.10.1-12.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.fc22

Comment 10 Fedora Update System 2015-04-07 05:24:15 UTC
opendkim-2.10.1-12.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-12.el7

Comment 11 Fedora Update System 2015-04-07 17:10:04 UTC
Package opendkim-2.10.1-12.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing opendkim-2.10.1-12.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5688/opendkim-2.10.1-12.fc22
then log in and leave karma (feedback).

Comment 12 Fedora Update System 2015-04-08 06:57:05 UTC
Package opendkim-2.10.1-12.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing opendkim-2.10.1-12.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-5714/opendkim-2.10.1-12.fc20
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2015-04-18 09:32:11 UTC
opendkim-2.10.1-12.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2015-04-18 09:45:03 UTC
opendkim-2.10.1-12.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2015-04-20 22:05:57 UTC
opendkim-2.10.1-13.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.fc21

Comment 16 Fedora Update System 2015-04-20 22:06:08 UTC
opendkim-2.10.1-13.el5 has been submitted as an update for Fedora EPEL 5.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.el5

Comment 17 Fedora Update System 2015-04-20 22:06:18 UTC
opendkim-2.10.1-13.el6 has been submitted as an update for Fedora EPEL 6.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.el6

Comment 18 Fedora Update System 2015-04-20 22:08:32 UTC
opendkim-2.10.1-13.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.fc22

Comment 19 Fedora Update System 2015-04-20 22:08:43 UTC
opendkim-2.10.1-13.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.el7

Comment 20 Fedora Update System 2015-04-20 22:08:56 UTC
opendkim-2.10.1-13.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/opendkim-2.10.1-13.fc20

Comment 21 Fedora Update System 2015-04-29 13:08:18 UTC
opendkim-2.10.1-13.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2015-05-01 16:44:11 UTC
opendkim-2.10.1-13.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 23 Fedora Update System 2015-05-01 16:54:48 UTC
opendkim-2.10.1-13.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 24 Fedora Update System 2015-05-08 16:40:33 UTC
opendkim-2.10.1-13.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 25 Fedora Update System 2015-05-08 16:40:55 UTC
opendkim-2.10.1-13.el6 has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 26 Fedora Update System 2015-05-08 16:41:05 UTC
opendkim-2.10.1-13.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.


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