Project

General

Profile

Actions

Bug #7515

closed

rudder-agent and rudder-slapd init scripts may fail to stop services if killall is missing or misbehaving

Added by Jonathan CLARKE over 8 years ago. Updated over 8 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

This is essentially the same as #5825 but on the 2.11 branch, and with improvements.

'killall' may not be available, and sometimes it is known to fail:


[root@server ~]# ps axf | grep [s]lapd
4387 ?        Ssl    0:05 /opt/rudder/libexec/slapd -h ldap://127.0.0.1:389 -n rudder-slapd -f /opt/rudder/etc/openldap/slapd.conf
[root@server ~]# /usr/bin/killall -KILL /opt/rudder/libexec/slapd
/opt/rudder/libexec/slapd: no process killed

However, we can use "pidof". But the original implementation in #5825 only looked for pidof in /bin, although it can be elsewhere (like /sbin, on RHEL 6 at least).


Related issues 2 (0 open2 closed)

Related to Rudder - Bug #5825: rudder-jetty and rudder-inventory-ldap init scripts can fail when killall is not availableReleasedJonathan CLARKE2014-12-04Actions
Related to Rudder - Bug #7516: rudder-inventory-ldap and rudder-jetty don't stop their services on uninstall and rudder-slapd can fail to restart on upgradeReleasedBenoît PECCATTE2015-11-30Actions
Actions #1

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from New to In progress
  • Assignee set to Jonathan CLARKE
Actions #2

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Jonathan CLARKE to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/819
Actions #3

Updated by Jonathan CLARKE over 8 years ago

  • Related to Bug #5825: rudder-jetty and rudder-inventory-ldap init scripts can fail when killall is not available added
Actions #4

Updated by Jonathan CLARKE over 8 years ago

  • Related to Bug #7516: rudder-inventory-ldap and rudder-jetty don't stop their services on uninstall and rudder-slapd can fail to restart on upgrade added
Actions #5

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from Pending technical review to Pending release
  • % Done changed from 0 to 100
Actions #7

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.11.17, 3.0.12 and 3.1.5 which were released today.

Actions

Also available in: Atom PDF