Gentoo Archives: gentoo-dev

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-dev@l.g.o
Cc: robbat2@g.o
Subject: Re: [gentoo-dev] [RFC] new tmpfilesd.eclass
Date: Thu, 16 Aug 2012 07:09:19
Message-Id: 20120816101343.4ef6e966@sf
In Reply to: Re: [gentoo-dev] [RFC] new tmpfilesd.eclass by "Robin H. Johnson"
1 On Thu, 16 Aug 2012 06:19:55 +0000
2 "Robin H. Johnson" <robbat2@g.o> wrote:
3
4 > On Wed, Aug 15, 2012 at 11:57:57PM +0300, Sergei Trofimovich wrote:
5 > > As gentoo switched to /var/run/ -> /run in tmpfs recently
6 > > people got into problems [1] of missing directories like:
7 > > /var/run/screen/
8 > > /var/run/openfire/
9 > > /var/run/proftpd/
10 > > they did bite me personally.
11 > If the package has an init.d script, it should be doing creation of the
12 > needed dirs. I know this doesn't help screen however.
13
14 $ sudo /etc/init.d/proftpd restart
15 proftpd | * Starting ProFTPD ... [ !! ]
16 proftpd | * ERROR: proftpd failed to start
17
18 in inetd mode it's an error to attempt to start daemon.
19 It does create /var/run/ entry though.
20
21 > > openrc-0.10 brought [2] basic support for systemd's tmpfiles'd:
22 > > [2]: https://bugs.gentoo.org/show_bug.cgi?id=396003
23 > > http://0pointer.de/public/systemd-man/tmpfiles.d.html
24 > Ok, missing functionality:
25 > tmpfiles.sh:
26 > - clean-up (age column)
27 > - 'x' type (used only during clean-up to exclude locations from
28 > cleaning).
29
30 Another misfeature: some fields seem to be optional and tmpfiles.sh
31 dislikes it (example is taken from the bottom of tmpfiles.d.html).
32 Looks like just missing quotes in tests:
33
34 tmpfiles.d # cat screen.conf
35 d /var/run/screens 1777 root root 10d
36 d /var/run/uscreens 0755 root root 10d12h
37 sf tmpfiles.d # /lib/rc/sh/tmpfiles.sh --create
38 /lib/rc/sh/tmpfiles.sh: 274: [: =: unexpected operator
39 /lib/rc/sh/tmpfiles.sh: 274: [: =: unexpected operator
40
41 --
42
43 Sergei

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] [RFC] new tmpfilesd.eclass "Robin H. Johnson" <robbat2@g.o>