From bc88583c0650943627ea55b3174cdd75da9261c7 Mon Sep 17 00:00:00 2001 From: Julien Semaan Date: Thu, 19 Sep 2019 20:04:20 -0400 Subject: [PATCH] fix missing new line --- addons/packages/packetfence.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/packages/packetfence.spec b/addons/packages/packetfence.spec index ea9c8b821cff..97f062661b91 100644 --- a/addons/packages/packetfence.spec +++ b/addons/packages/packetfence.spec @@ -624,7 +624,8 @@ rm -rf $RPM_BUILD_ROOT # This (extremelly) ugly hack below will make the current processes part of a cgroup other than the one for user-0.slice # This will allow for the current shells that are opened to be protected against stopping when we'll be calling isolate below which stops user-0.slice # New shells will not be placed into user-0.slice since systemd-logind will be disabled and masked -/bin/bash -c "/usr/bin/systemctl status user-0.slice | /usr/bin/egrep -o '─[0-9]+' | /usr/bin/sed 's/─//g' | /usr/bin/xargs -I{} /bin/bash -c '/usr/bin/kill -0 {} > /dev/null 2>/dev/null && /usr/bin/echo {} > /sys/fs/cgroup/systemd/tasks'"/usr/bin/systemctl stop systemd-logind +/bin/bash -c "/usr/bin/systemctl status user-0.slice | /usr/bin/egrep -o '─[0-9]+' | /usr/bin/sed 's/─//g' | /usr/bin/xargs -I{} /bin/bash -c '/usr/bin/kill -0 {} > /dev/null 2>/dev/null && /usr/bin/echo {} > /sys/fs/cgroup/systemd/tasks'" +/usr/bin/systemctl stop systemd-logind /usr/bin/systemctl --now mask systemd-logind /usr/bin/systemctl daemon-reload