» Main »
huppy - Run (and restart) process on HUP signal
Published by Tim Cuthbertson
- Overview
This is a Zero Install feed. This software cannot be run as an application directly. It is a library for other programs to use.
For more information about Zero Install, see 0install.net.
- Full name
- Description
# huppy Some servers and long-running processes restart themselves cleanly when they receive the `HUP` signal. But many don't. If yours doesn't, and you want a development-friendly way to restart your server, you should use `huppy`. It'll run your server (or other long-running process), and when you send it the `HUP` signal it'll kill and restart your process for you. Your process should terminate gracefully when it receives `SIGINT` (i.e `ctrl-c`). In particular, make sure you clean up any child processes, as huppy won't kill those. # Usage: $ huppy python -m SimpleHTTPServer [ huppy ] Running python (pid 3641) Serving HTTP on 0.0.0.0 port 8000 ... # in another terminal, run: $ killall -HUP huppy Traceback (most recent call last): [ ... ] KeyboardInterrupt [ huppy ] Restarted python (pid 3667) Serving HTTP on 0.0.0.0 port 8000 ... # Building & Installing If you have [ZeroInstall](http://0install.net) (you should!), it's just: $ 0compile autocompile http://gfxmonk.net/dist/0install/huppy.xml $ 0install add huppy http://gfxmonk.net/dist/0install/huppy.xml Otherwise, you'll need to get the dependencies yourself ([gup](https://github.com/gfxmonk/gup/) and ocaml), and then: $ # compile into build/gup $ gup $ # install (optional) $ env DESTDIR=$HOME/bin gup install
- Available versions
The list below is just for information; Zero Install will automatically select one of these versions for you.
Version Released Stability Platform Download 0.1.0 2014-03-22 Source code Download (1105 bytes) 0.1.1 2014-07-11 buggy Source code Download (1932 bytes) 0.1.2 2014-07-12 Source code Download (2580 bytes) - Required libraries
The list below is just for information; Zero Install will automatically download any required libraries for you.