Oswald,

Thank you for your email and for pointing me the discussions.

> this exists in the TODO file and in various mailing list discussions under
> the name "daemon mode". i haven't spent much time thinking about that beyond
> what is public, so i'm all ears for your ideas once you've read up on the
> topic.

I looked around briefly, and i don't think that i have a very robust proposal,
or indeed a very sophisticated thing in mind. My use case and desired feature
would be a simple flag, say "--periodic[=period]", which would have the same
effect as rerunning the process with all of its given arguments every
${period:-some default} seconds---but with the sole proviso that the config is
parsed only once at the beginning. In some of the lingo i've read, this is
something like a foreground daemon, with nothing more sophisticated about the
output than the current binary exhibits.

After playing around with the code somewhat, i've begun to form an impression
about where parsing the config happens, and where handing off to the drivers
happens, but AFAICT they're both in sync_chans of main.c? Ideally these would
be separated so that main could read something like

<parse --periodic into period>
...
parse_config();
do {
        driver_stuff();
        sleep(period);
} while (period);

Does that make sense? Would you be able to give me some hints about how to
effect this in the current code base? Is there interest in such a simplistic
feature upstream?

Thanks,
yours &c.,
tslil


_______________________________________________
isync-devel mailing list
isync-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to