https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39769

Robin Sheat <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Robin Sheat <[email protected]> ---
A model that I've used in other things with good success to solve this sort of
issue is:

1. Have the script die after, say, 20 minutes (you'll need to add a timeout to
`receive_frame` so that it doesn't block, but that's find)
2. Have a cron job that launches the script every 15 minutes, but does so using
a mechanism that prevents multiple instances running at once (I think systemd
has a function for this, otherwise it's possible to use flock)

This way, you are sure that any unused memory is cleared regularly, any updates
to the code are picked up quickly, if it crashes it'll be running again soon,
and so on.

We called them "cron daemons" (distinct from the cron daemon that actually does
cron.)

It will need some migration (from daemon start to a cronjob), so it might be
good to have a "timeout" command line option and then it can be migrated in the
packages for example, but normal "run forever" behaviour will remain for
everyone else.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to