[wpkg-users] frequency of wpkgservice checking for new installs

Brad Langhorst brad at coopmetrics.coop
Mon Jun 11 21:52:07 CEST 2007


On Mon, 2007-06-11 at 21:36 +0200, Tomasz Chmielewski wrote:
...
> >>> okay - maybe i could add a feature to have it check periodically
> the
> >>> wpkg directory for a flag file telling it to initiate a sync?
> >>>
> >>> that way one could install software everywhere without having to reboot
> >>> or restart the service remotely.
> >> What do you mean by a "flag file"?
> > i mean a special file that an administrator could create to trigger a
> > sync.
> > eg: \\rococo\wpkg\FORCE_SYNC
> > 
> > if the file is present when the service  polls the service could start a
> > sync.
> 
> Well, it's not enough.
> So we create a file there, and don't remove it... What happens? We could 
> read some timestamps - what if the clocks are out of sync?
> 
> So, we would have to check and remember timestamps - but what if WPKG 
> starts, and the file is already there?
> 
> Yes, lots of "if"s :)

I'm thinking that if that file is there then the service will try to do
a sync every X minutes (which could be bad on a big network, but then
again a power outage could be bad too).

If the service just keeps syncing every X minutes then there are no
worries about timestamps etc.  If you wanted to do only a single forced
sync, I guess the service could keep track of whether it had synced or
not until it sees that the FORCE_SYNC file has disappeared (at which
point it could clear its already synced state and be ready to watch for
a new FORCE_SYNC file)

brad
-- 
Brad Langhorst
CTO - CoopMetrics




wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list