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

Restart process on fly #239

Open
seahindeniz opened this issue Aug 14, 2020 · 3 comments
Open

Restart process on fly #239

seahindeniz opened this issue Aug 14, 2020 · 3 comments

Comments

@seahindeniz
Copy link

seahindeniz commented Aug 14, 2020

Hi

I'm troubling with restarting a single process without stopping any other process that are running under concurrently. I have to restart concurrently all over again each time a process needs to be reloaded.

I think there is no command to restart a process by it's index number or maybe name while all processes are running.
An option like, nodemon's rs + Enter command that allows you to restart.

I think, using the same approach but with additionals would be good to have.
Something like:

  • rs to restart all
  • rs 1 by index number
  • rs "watch" by name. Not sure but this one maybe cause issues with processes that may have named with numbers only.
@cben
Copy link

cben commented Aug 16, 2020

See also entr which is a generic tool for watching any set of files/dirt and running/restarting a process on change.

@seahindeniz
Copy link
Author

seahindeniz commented Aug 16, 2020

Hi @cben
I just take a look at the examples in here and here and from what I can tell is that, entr was kind of based on file changes, correct me if I'm wrong. I also couldn't figure out the "dirt" reference on your suggestion.

My request is kind of having some sort of an input/method which gives you the ability to restart a process by force without depending on anything but user input.

@lydell
Copy link

lydell commented Jan 1, 2021

Shameless plug: run-pty is a similar but different tool that lets you restart every process individually.

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

No branches or pull requests

4 participants