aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Postiglione <andrea.postiglione@gmail.com>2020-12-06 18:38:19 +0100
committerAndrea Postiglione <andrea.postiglione@gmail.com>2020-12-06 18:38:19 +0100
commitff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7 (patch)
tree812f90099e90ecee3c83842bb03c3a6bb962f80a /sys-cluster/pcs
parentsys-cluster/pcs: fix dependency (diff)
downloadguru-ff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7.tar.gz
guru-ff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7.tar.bz2
guru-ff3c16a753bb56cf05c8ddd03354dbc8a36d0aa7.zip
sys-cluster/pcs: modify patch openrc
Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andrea Postiglione <andrea.postiglione@gmail.com>
Diffstat (limited to 'sys-cluster/pcs')
-rw-r--r--sys-cluster/pcs/files/openrc-0.10.7.patch4
1 files 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 a2cd30d05..aad70cb10 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)