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

Repeater functionality #1

Closed
rawdamedia opened this issue Jul 17, 2015 · 1 comment
Closed

Repeater functionality #1

rawdamedia opened this issue Jul 17, 2015 · 1 comment

Comments

@rawdamedia
Copy link
Owner

Is there a better way of doing this? In particular:

  • is there a way to have this run separate from a particular shell session, so that if I initiate it by remoting into a machine via SSH, I can leave it to run without having to maintain the shell connection?
  • Maybe there already is a scheduler framework for Elixir?
  • Should I just use the system scheduler mechanism, at the cost of being less portable between linux and mac?
@madlep
Copy link
Collaborator

madlep commented Jul 17, 2015

To run it without requiring an SSH connection there are a few options.

If it's a run-once till finish, then shut down job, I'd handle this with the screen utility - it starts a sub shell where you run your command. You can detach from it and disconnect. It will keep running in the background. You can reconnect again if needed later on a new SSH session.

If it's a daemon process that needs to run indefinitely in the background, I'd use upstart or init or whatever the flavour of linux you're using has for maintaining system jobs that need to be kept up. It will restart if they crash, or if the OS reboots.

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

No branches or pull requests

2 participants