commit: ff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7 Author: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com> AuthorDate: Sun Dec 6 17:38:19 2020 +0000 Commit: Andrea Postiglione <andrea.postiglione <AT> gmail <DOT> com> CommitDate: Sun Dec 6 17:38:19 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ff3c16a7
sys-cluster/pcs: modify patch openrc Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andrea Postiglione <andrea.postiglione <AT> gmail.com> 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 a2cd30d0..aad70cb1 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)