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

Fix the service status when using systemd #15

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

Pansanel
Copy link
Contributor

Summary

When using BDII on Alma 9, the reported GlueServiceStatusInfo value is ??, as the code is using service command instead of systemctl. However, since CentOS 7, systemd is used by default. The following PR permits to report correctly the value of status:

$ glite-info-service-status bdii
active

@Pansanel Pansanel requested a review from a team as a code owner November 18, 2024 15:55
@gwarf
Copy link
Member

gwarf commented Nov 18, 2024

The fact is that no systemd unit is provided at all, it's only legacy service description.
I was expecting that the initscripts-service package would be enough to have the /usr/sbin/service call work, is it installed?
Or maybe it's just that it's not the proper path, ie /sbin vs /usr/sbin/?
If we start to add real systemcl stuff, we should likely better add proper systemd units, but I'm not really having time for this right now.

Copy link
Member

@gwarf gwarf left a comment

Choose a reason for hiding this comment

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

LGTM!
Thanks and sorry for the delay.

@gwarf gwarf merged commit 0a4994b into EGI-Federation:main Jan 24, 2025
6 checks passed
@gwarf gwarf mentioned this pull request Jan 24, 2025
gwarf added a commit that referenced this pull request Jan 27, 2025
## [1.15.0] - 2025-01-24

## Fixed

- Move the semantics URL to the new project repository on GitHub (#14)
(Jérôme Pansanel)
- Fix the service status when using systemd (#15) (Jérôme Pansanel)

## Removed

- Remove support for CentOS 7 (#16) (Baptiste Grenier)
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