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

Kill process if it's still running before starting a new one #59

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

dkellner
Copy link
Contributor

I have several just recipes that will start long running processes (e.g. servers). I'd like to be able to restart them using justl-recompile and keep only one of them active at all times (just like with a regular compile command).

This PR takes the relevant piece of code from compilation-start and incorporates it into justl-recompile.

@psibi
Copy link
Owner

psibi commented Sep 24, 2024

Thanks, LGTM. Can you also update the changelog ?

Changelog.org Outdated
@@ -1,3 +1,8 @@
* 0.15
Copy link
Owner

Choose a reason for hiding this comment

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

Sorry, I should have said it before: Can you update it to Unreleased instead ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure! Sorry, should have looked into the git log how you did that before.

@psibi psibi merged commit 9a06e61 into psibi:master Sep 24, 2024
5 checks passed
@psibi
Copy link
Owner

psibi commented Sep 24, 2024

Thank you!

@dkellner dkellner deleted the kill-on-recompile branch September 25, 2024 05:37
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