1 |
> lo, |
2 |
> |
3 |
> On Tuesday 06 December 2005 21:54, Justin Krejci wrote: |
4 |
> [snip] |
5 |
>> /bin/touch /tmp/esync.update |
6 |
>> /usr/sbin/esync |
7 |
>> /bin/touch /tmp/esync.update |
8 |
> |
9 |
> given most admins habits of setting up scripts to clear out /tmp on a |
10 |
> regular |
11 |
> basis this is not the best place to put such information on "state". If |
12 |
> you |
13 |
> insist on using this dir then I would recommend something like: |
14 |
> |
15 |
> ESYNC_STATE="$(mktemp -p /tmp/esync_state/esync_state.XXX)" || exit 1 |
16 |
> |
17 |
> By using the subdir you can ensure proper perms and security (depending on |
18 |
> what user you are running the script as) and you stop _most_ /tmp cleaners |
19 |
> as |
20 |
> they won't kill subdirs. |
21 |
|
22 |
speaking of "state" - wouldn't be /var/state/ the appropriate directory..? |
23 |
The file (or directory within) should be owned by the portage group, as |
24 |
only members of the portage group are able to sync anyway, right? |
25 |
|
26 |
Christian |
27 |
|
28 |
-- |
29 |
gentoo-server@g.o mailing list |