Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quit find after one match, adjust test accordingly #611

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

jacobsalmela
Copy link
Contributor

No description provided.

Signed-off-by: Jacob Salmela <jacob.salmela@hpe.com>
@jacobsalmela jacobsalmela self-assigned this Oct 28, 2024
@jacobsalmela jacobsalmela requested a review from a team as a code owner October 28, 2024 15:06
Copy link

@dborman-hpe dborman-hpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
FYI I checked this on mug, and verified that it doesn't matter which of the multiple responses is used, they all report the same information.

ncn-m001:~ # md5sum `find /sys/fs/cgroup -path '*/goss-servers.service/cgroup.procs' -type f`
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/pids/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/blkio/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/memory/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/devices/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/cpu,cpuacct/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/systemd/system.slice/goss-servers.service/cgroup.procs
21ca286f5674493404c310e736b3a70d  /sys/fs/cgroup/unified/system.slice/goss-servers.service/cgroup.procs

@jacobsalmela jacobsalmela merged commit d81ca10 into release/1.6 Oct 28, 2024
3 checks passed
@jacobsalmela jacobsalmela deleted the optimal-mephisto branch October 28, 2024 15:51
@jacobsalmela
Copy link
Contributor Author

Yeah @dborman-hpe I noticed this as well, which is why I changed it to just one match. There may be a better way to get the pids with pgrep or some other method, but I usually start with the most basic tools and work up from there. This one just needed several refinements after working it across many different systems.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants