Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
pacemaker
pacemaker#3384-0001-Fix-cibsecret-Use-ps-axww-t...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker#3384-0001-Fix-cibsecret-Use-ps-axww-to-avoid-truncating-issue.patch of Package pacemaker
From 581e1bf3850a5e6a972ea02198bbbf2d99b29873 Mon Sep 17 00:00:00 2001 From: xin liang <xliang@suse.com> Date: Wed, 6 Mar 2024 17:07:16 +0800 Subject: [PATCH] Fix: cibsecret: Use 'ps axww' to avoid truncating issue When python program calling cibsecret with a small terminal width, the command `ps -ef | grep '[p]acemaker-controld'` will return 1, see >>> cmd = "ps -ef | grep '[p]acemaker-controld' >/dev/null" >>> # When terminal width is small >>> subprocess.call(cmd, shell=True) 1 >>> # When terminal is big enough >>> subprocess.call(cmd, shell=True) 0 Use 'ps axww' can avoid this issue, also for BSD environment. --- tools/cibsecret.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: pacemaker-2.0.4+20200616.2deceaa3a/tools/cibsecret.in =================================================================== --- pacemaker-2.0.4+20200616.2deceaa3a.orig/tools/cibsecret.in +++ pacemaker-2.0.4+20200616.2deceaa3a/tools/cibsecret.in @@ -157,7 +157,7 @@ check_env() { else fatal "please install pssh, pdsh, or ssh to run $PROG" fi - ps -ef | grep '[p]acemaker-controld' >/dev/null || + ps axww | grep '[p]acemaker-controld' >/dev/null || fatal "pacemaker not running? $PROG needs pacemaker" }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor