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

Vegas should trap 'HUP' and restart. #18

Open
bobthecow opened this issue Feb 28, 2013 · 1 comment
Open

Vegas should trap 'HUP' and restart. #18

bobthecow opened this issue Feb 28, 2013 · 1 comment

Comments

@bobthecow
Copy link

When a daemonized vegas app is killed with -HUP, it should restart with the same arguments and configuration options and working directory as before.

This would allow vegas apps to run:

Process.kill :HUP, Process.pid

... to reload themselves. It would also allow adding a --restart option to vegas:

def restart!
  pid = File.read(pid_file)
  logger.warn "Sending HUP to #{pid.to_i}"
  Process.kill(:HUP, pid.to_i)
end

See bobthecow/genghis#41

@danielb2
Copy link

danielb2 commented Mar 1, 2013

👍

Just to expand, this is useful if an app using Vegas has been upgraded to a new version in order to be able to restart it on the fly without an explicit shutdown etc.

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