On Tue, Dec 30, 2008 at 6:50 PM, Yuval Hager <yu...@avramzon.net> wrote:

> Hi,
>
> cron gives me a great way to start jobs at a given time. I am looking for a
> way to stop jobs in a similar manner.
>
> My use case is an rsync job I would like to run during the night
> (midnight-6am). My thought was to simply save the pid somewhere when the
> job
> starts, and kill it when it should end. Are there more elegant solutions?
> Maybe something similar to rc initscripts start/stop scheme?
>

There's The Fault Tolerant Shell[1], that assumes that running for too long
is 'a fault', which you might use.

-- Shimi

[1] http://www.cse.nd.edu/~ccl/software/ftsh/

Reply via email to