From ff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7 Mon Sep 17 00:00:00 2001 From: Andrea Postiglione Date: Sun, 6 Dec 2020 18:38:19 +0100 Subject: [PATCH] sys-cluster/pcs: modify patch openrc Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andrea Postiglione --- sys-cluster/pcs/files/openrc-0.10.7.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys-cluster/pcs/files/openrc-0.10.7.patch b/sys-cluster/pcs/files/openrc-0.10.7.patch index a2cd30d053..aad70cb107 100644 --- a/sys-cluster/pcs/files/openrc-0.10.7.patch +++ b/sys-cluster/pcs/files/openrc-0.10.7.patch @@ -18,7 +18,7 @@ cmd = ['systemctl', 'is-enabled', "#{service}.service"] else - cmd = ['chkconfig', service] -+ cmd = ['/usr/bin/rc-config','list default|/bin/grep -ow', service] ++ cmd = ['/usr/bin/rc-config','list default|/bin/grep -q', service] end _, _, retcode = run_cmd(PCSAuth.getSuperuserAuth(), *cmd) return (retcode == 0) @@ -27,7 +27,7 @@ cmd = ['systemctl', 'status', "#{service}.service"] else - cmd = ['service', service, 'status'] -+ cmd = ['/bin/rc-status', 'default|/bin/grep started| /bin/grep -ow', service] ++ cmd = ['/bin/rc-status', 'default|/bin/grep started| /bin/grep -q', service] end _, _, retcode = run_cmd(PCSAuth.getSuperuserAuth(), *cmd) return (retcode == 0)