Icinga / icinga-core

Icinga 1.x, the old core (EOL 31.12.2018)
GNU General Public License v2.0
45 stars 27 forks source link

[dev.icinga.com #9973] Problem starting ido2db while booting on fedora > 19 #1560

Closed icinga-migration closed 6 years ago

icinga-migration commented 9 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/9973

Created by elpito on 2015-08-21 07:18:49 +00:00

Assignee: elpito Status: Feedback Target Version: (none) Last Update: 2015-11-14 23:21:07 +00:00 (in Redmine)

Icinga Version: 1.13.3
OS Version: Fedora > 19

Since fedora 19 and systemd, I had troubles starting ido2db. The problem is ido2db needs mysql or any configured DB before it starts. In my case mariadb on fedora 22. Here the changed line on ido2db.service file:

After=syslog.target network.target mariadb.service

Attachments

icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-10-26 08:29:42 +00:00

That would probably require some detection mechanism for whether mysql or mariadb is required on systemd-based systems. Can you please provide a patch for that? :)

icinga-migration commented 9 years ago

Updated by elpito on 2015-10-29 08:57:15 +00:00

I will have a lock on this. But, at the moment, I'm quite busy. I'm not sure at the moment, if we need a detection mechanism, but I will figure out it and then provide a patch.

icinga-migration commented 9 years ago

Updated by elpito on 2015-11-01 20:46:15 +00:00

HI, I made the patches, but I did not test it with postgres, but I'm sure its working using postgres as ido2db database backend. I have attached to patch files, one for the systemd config and one for the RPM spec file.

icinga-migration commented 9 years ago

Updated by mfriedrich on 2015-11-14 23:21:07 +00:00

Well, I did not mean to patch the sources from inside the rpm spec file - rather find a good way to detect that from configure/make and then replace the values accordingly. So that an rpmbuild does not need to care about extra patches but automatically gets the properly generated files.