From 533fb3557a711c704ea49c80aee025dfd47edfb2 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Tue, 26 Jan 2016 19:10:54 +0100 Subject: [PATCH] ceph.spec.in: disable udev systemd slices on uninstall The "^system-ceph\\x2" regex catches "system-ceph\x2ddisk\x2dactivate" "system-ceph\x2ddisk\x2dactivate\x2djournal", "system-ceph\x2dosd", etc. systemd slices spawned by udev (bnc#941628). Signed-off-by: David Disseldorp --- ceph.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 88d4829b382..bba12e6a997 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -675,7 +675,7 @@ rm -rf $RPM_BUILD_ROOT %endif # Disable and stop on removal. if [ $1 = 0 ] ; then - SERVICE_LIST=$(systemctl | grep -E '^ceph-mon@|^ceph-create-keys@|^ceph-osd@|^ceph-mds@|^ceph-disk-' | cut -d' ' -f1) + SERVICE_LIST=$(systemctl | grep -E '^ceph-mon@|^ceph-create-keys@|^ceph-osd@|^ceph-mds@|^ceph-disk-|^system-ceph\\x2' | cut -d' ' -f1) if [ -n "$SERVICE_LIST" ]; then for SERVICE in $SERVICE_LIST; do /usr/bin/systemctl --no-reload disable $SERVICE > /dev/null 2>&1 || : -- 2.47.3