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

[DPE-3602] Charm restart #155

Merged
merged 4 commits into from
Feb 19, 2024
Merged

[DPE-3602] Charm restart #155

merged 4 commits into from
Feb 19, 2024

Conversation

dragomirp
Copy link
Contributor

@dragomirp dragomirp commented Feb 16, 2024

Fix restart blocked state.

@@ -415,7 +415,7 @@ def _on_start(self, _) -> None:
prom_service = f"{PGB}-{self.app.name}-prometheus"
if os.path.exists(f"/etc/systemd/system/{prom_service}.service"):
try:
systemd.service_start(service)
systemd.service_start(prom_service)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Started the wrong service.

@dragomirp dragomirp marked this pull request as ready for review February 16, 2024 23:22
Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

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

Nice fix! We even had a code there :-)))

@dragomirp dragomirp merged commit 61b9ae4 into main Feb 19, 2024
32 checks passed
@dragomirp dragomirp deleted the dpe-3602-restart branch February 19, 2024 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants