Gentoo Archives: gentoo-server

From: "Benjamin Smee (strerror)" <strerror@g.o>
To: gentoo-server@l.g.o
Cc: Justin Krejci <jus@×××××××××××.com>
Subject: Re: [gentoo-server] portage syncing
Date: Wed, 07 Dec 2005 11:26:16
Message-Id: 200512071124.27042.strerror@gentoo.org
In Reply to: [gentoo-server] portage syncing by Justin Krejci
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 regular
10 basis this is not the best place to put such information on "state". If you
11 insist on using this dir then I would recommend something like:
12
13 ESYNC_STATE="$(mktemp -p /tmp/esync_state/esync_state.XXX)" || exit 1
14
15 By using the subdir you can ensure proper perms and security (depending on
16 what user you are running the script as) and you stop _most_ /tmp cleaners as
17 they won't kill subdirs.
18
19
20 --
21
22 Benjamin Smee (strerror)
23 netmail/netmon/forensics/crypto
24 strerror@g.o

Replies

Subject Author
Re: [gentoo-server] portage syncing Christian Bricart <christian@×××××××.de>