Quoth Christian Bricart (on Wednesday, the 7th of December):

lo,

On Tuesday 06 December 2005 21:54, Justin Krejci wrote:
[snip]
/bin/touch /tmp/esync.update
/usr/sbin/esync
/bin/touch /tmp/esync.update


speaking of "state" - wouldn't be /var/state/ the appropriate directory..?
The file (or directory within) should be owned by the portage group, as
only members of the portage group are able to sync anyway, right?

I would definitely place it there.
Files placed */tmp dir should are by definition (FHS) not to be expected to remain there between two runs of a program.

But that's not why I am replying.

Wouldn't the following suffice in the case of portage syncing?
esync && touch /usr/portage/lastsync

This file will carry a timestamp of when the last sync happened, and as rsync deletes this file, if it's missing that means that the sync encoutered problems and your portage tree is in an undefined state.

Opinions?

        Peter
-- "I do not think the way you think I think."
    -- Kai, last of the Brunnen G
--
[email protected] mailing list

Reply via email to