[dev.icinga.com #1267] Ido2db init script throws an error if stopped while not running #566
Comments
Updated by mfriedrich on 2011-03-14 21:40:53 +00:00
|
Updated by mfriedrich on 2011-03-16 17:13:11 +00:00
this is the exact same behavior is in daemon-init from icinga. maybe there's an rhel specific init script required? @meier |
Updated by Meier on 2011-04-19 19:03:51 +00:00
What exactly is the problem?
|
Updated by theh on 2011-04-19 20:00:35 +00:00 The problem is that according to LSB a non running service should throw no error if stopped. Ido2db does this so if you remove ido2db while the service is not running the rpm scripts interrupts after unsuccessfully trying to stop the service. To try it just stop the ido2db service and then stop it again. It throws an error instead of a success message. I have replaced the service file so I can't test it right now but if it works for you let me know. |
Updated by theh on 2011-05-06 22:45:43 +00:00 Any news on this one? Did anyone try it? |
Updated by mfriedrich on 2011-05-09 07:57:35 +00:00 i've tried stopping it while checking on the return value.
though i can't see where the exit status sources from (icinga initscript will do the same?), the killproc_ido2db call to kill probably does that. if you got a proper patch for it, feel free to submit. |
Updated by Anonymous on 2011-05-09 08:25:25 +00:00 just to add in to this issue, on SLES 11 the init script is broken. its unable to stop the process when you issue the stop command, to fix you have to manually issue a kill on the procid. Stopping ido2db: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec] There is currently a SuSE init script floating around, maybe include to source so it is given to people using SuSE rather than redhat? |
Updated by theh on 2011-05-09 15:01:27 +00:00
So here is a patch against 1.3.1 but please don't just apply it because basically I used an init skeleton and edited some things to make it work. It does work for me but it is likely that there are some other issues especially on non Suse systems. Nevertheless it properly kills ido2db on my system. |
Updated by mfriedrich on 2011-05-09 15:06:19 +00:00 hmmm but that diff is a full diff against the existing original. it does not really solve the origin case of exiting with the return value of 'kill', in that case the error. |
Updated by theh on 2011-05-09 15:20:53 +00:00 It doesn't result in the exit code problem of the old script on my system (SLES 11 SP1) which means that stopping a stopped ido2db is successful with it. And like I mentioned killing the process works here but I never really have checked it with the default init script. |
Updated by theh on 2011-06-16 10:06:02 +00:00 The Icinga init script has the same problem as ido2db so it can't be uninstalled when it is not running. How can I update the title of this bug report? |
Updated by theh on 2011-08-28 06:26:37 +00:00
I am adding our current init scripts for Icinga and Ido2db. |
Updated by theh on 2011-08-28 06:26:51 +00:00
|
Updated by mfriedrich on 2012-04-20 12:43:22 +00:00 what's the status of this? |
Updated by theh on 2012-04-20 12:57:49 +00:00
Since we use our own init scripts it does work here and it looks like it wasn't a problem for other distros otherwise there would have been other complaints I suppose. |
Updated by mfriedrich on 2014-12-08 14:35:45 +00:00
|
This issue has been migrated from Redmine: https://dev.icinga.com/issues/1267
Created by theh on 2011-03-04 08:07:05 +00:00
Assignee: theh
Status: Closed (closed on 2012-04-20 12:57:49 +00:00)
Target Version: (none)
Last Update: 2014-12-08 14:35:45 +00:00 (in Redmine)
Ido2db init script throws an error if stopped while not running. This is not what it is supposed to do and it results in a rpm script error during removal.
Attachments
The text was updated successfully, but these errors were encountered: