> 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 > > given most admins habits of setting up scripts to clear out /tmp on a > regular > basis this is not the best place to put such information on "state". If > you > insist on using this dir then I would recommend something like: > > ESYNC_STATE="$(mktemp -p /tmp/esync_state/esync_state.XXX)" || exit 1 > > By using the subdir you can ensure proper perms and security (depending on > what user you are running the script as) and you stop _most_ /tmp cleaners > as > they won't kill subdirs.
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? Christian -- [email protected] mailing list
