[dev.icinga.com #11650] RPM update starts disabled icinga2 service #4148
Comments
Updated by gbeutner on 2016-05-11 16:16:41 +00:00
Apparently the init script (etc/initsystem/icinga2.init.d.cmake) doesn't properly implement condrestart, i.e. it just delegates that functionality to the 'restart' handler - which doesn't check whether the service is already running. Can you provide a patch for this? |
Updated by bcogel on 2016-05-12 14:17:13 +00:00 Try this one.... I hope this patch for the initscript does the job. I didn't have the time for package building and extensive testing. ***** icinga2.org 2016-05-12 15:48:27.165054196 +0200 ***** * 165,175
|
Updated by bcogel on 2016-05-12 14:21:12 +00:00
Opps.... HTML garbage..... Now the patch as file attached... Sorry! |
Updated by bcogel on 2016-07-29 14:57:30 +00:00
Sorry.... took me some time to get it done the git way.... |
Updated by mfriedrich on 2016-08-08 15:56:56 +00:00
|
Updated by bcogel on 2016-08-08 16:00:05 +00:00
Applied in changeset 47726d7. |
Updated by gbeutner on 2016-08-22 11:49:15 +00:00
|
Updated by gbeutner on 2016-08-22 11:49:21 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11650
Created by bcogel on 2016-04-21 13:39:46 +00:00
Assignee: bcogel
Status: Resolved (closed on 2016-08-08 16:00:05 +00:00)
Target Version: 2.5.0
Last Update: 2016-08-22 11:49:21 +00:00 (in Redmine)
System: Rhel6 x86_64
During system update icinga2 is started although it is chkconfig off.
[root@hydra~]$ service icinga2 status
Icinga 2 status: Not running
[root@hydra~]$ chkconfig icinga2 --list
icinga2 0:Aus 1:Aus 2:Aus 3:Aus 4:Aus 5:Aus 6:Aus
[root@hydra~]$ yum update
Geladene Plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Einrichten des Aktualisierungsprozess
epel | 4.3 kB 00:00
icinga-stable-release | 951 B 00:00
icinga-stable-release/primary | 32 kB 00:00
icinga-stable-release 179/179
....
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Package icinga2.x86_64 0:2.4.4-1.el6 will be aktualisiert
---> Package icinga2.x86_64 0:2.4.7-1.el6 will be an update
---> Package icinga2-bin.x86_64 0:2.4.4-1.el6 will be aktualisiert
---> Package icinga2-bin.x86_64 0:2.4.7-1.el6 will be an update
---> Package icinga2-common.x86_64 0:2.4.4-1.el6 will be aktualisiert
---> Package icinga2-common.x86_64 0:2.4.7-1.el6 will be an update
....
--> Abhängigkeitsauflösung beendet
Abhängigkeiten aufgelöst
Paket Arch Version Repository Grösse
Aktualisieren:
icinga2 x86_64 2.4.7-1.el6 icinga-stable-release 9.0 k
icinga2-bin x86_64 2.4.7-1.el6 icinga-stable-release 2.7 M
icinga2-common x86_64 2.4.7-1.el6 icinga-stable-release 90 k
.....
Vorgangsübersicht
Upgrade 12 Package(s)
Gesamte Downloadgrösse: 32 M
Ist dies in Ordnung? [j/N] :j
Lade Pakete herunter:
(1/12): icinga2-2.4.7-1.el6.x86_64.rpm | 9.0 kB 00:00
(2/12): icinga2-bin-2.4.7-1.el6.x86_64.rpm | 2.7 MB 00:00
(3/12): icinga2-common-2.4.7-1.el6.x86_64.rpm | 90 kB 00:00
....
Gesamt 15 MB/s | 32 MB 00:02
Führe rpm_check_debug durch
Führe Verarbeitungstest durch
Verarbeitungstest erfolgreich
Führe Verarbeitung durch
....
Aktualisieren: icinga2-common-2.4.7-1.el6.x86_64 7/24
Aktualisieren: icinga2-bin-2.4.7-1.el6.x86_64 8/24
....
Aktualisieren: icinga2-2.4.7-1.el6.x86_64 11/24
....
Aktualisiert:
icinga2.x86_64 0:2.4.7-1.el6
icinga2-bin.x86_64 0:2.4.7-1.el6
icinga2-common.x86_64 0:2.4.7-1.el6
....
Komplett!
[root@hydra~]$ service icinga2 status
Icinga 2 status: Running
[root@hydra~]$ service icinga2 stop
Stopping Icinga 2: .Done
[root@hydra~]$ chkconfig icinga2 --list
icinga2 0:Aus 1:Aus 2:Aus 3:Aus 4:Aus 5:Aus 6:Aus
Attachments
Changesets
2016-08-08 15:55:11 +00:00 by bcogel 47726d7
2016-08-08 15:56:35 +00:00 by mfriedrich 60dcf23
The text was updated successfully, but these errors were encountered: