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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ wpkg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wpkg-users
