Gentoo Archives: gentoo-server

From: Christian Bricart <christian@×××××××.de>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] portage syncing
Date: Wed, 07 Dec 2005 11:57:55
Message-Id: 56286.80.87.162.74.1133956519.squirrel@aachalon.de
In Reply to: Re: [gentoo-server] portage syncing by "Benjamin Smee (strerror)"
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

Replies

Subject Author
Re: [gentoo-server] portage syncing peter.gantner@×××××××××××××.at
Re: [gentoo-server] portage syncing Benjamin Smee <strerror@g.o>