From: Sergei Trofimovich <slyfox@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: robbat2@gentoo.org
Subject: Re: [gentoo-dev] [RFC] new tmpfilesd.eclass
Date: Thu, 16 Aug 2012 10:13:43 +0300 [thread overview]
Message-ID: <20120816101343.4ef6e966@sf> (raw)
In-Reply-To: <robbat2-20120816T061146-319977177Z@orbis-terrarum.net>
[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]
On Thu, 16 Aug 2012 06:19:55 +0000
"Robin H. Johnson" <robbat2@gentoo.org> wrote:
> On Wed, Aug 15, 2012 at 11:57:57PM +0300, Sergei Trofimovich wrote:
> > As gentoo switched to /var/run/ -> /run in tmpfs recently
> > people got into problems [1] of missing directories like:
> > /var/run/screen/
> > /var/run/openfire/
> > /var/run/proftpd/
> > they did bite me personally.
> If the package has an init.d script, it should be doing creation of the
> needed dirs. I know this doesn't help screen however.
$ sudo /etc/init.d/proftpd restart
proftpd | * Starting ProFTPD ... [ !! ]
proftpd | * ERROR: proftpd failed to start
in inetd mode it's an error to attempt to start daemon.
It does create /var/run/ entry though.
> > openrc-0.10 brought [2] basic support for systemd's tmpfiles'd:
> > [2]: https://bugs.gentoo.org/show_bug.cgi?id=396003
> > http://0pointer.de/public/systemd-man/tmpfiles.d.html
> Ok, missing functionality:
> tmpfiles.sh:
> - clean-up (age column)
> - 'x' type (used only during clean-up to exclude locations from
> cleaning).
Another misfeature: some fields seem to be optional and tmpfiles.sh
dislikes it (example is taken from the bottom of tmpfiles.d.html).
Looks like just missing quotes in tests:
tmpfiles.d # cat screen.conf
d /var/run/screens 1777 root root 10d
d /var/run/uscreens 0755 root root 10d12h
sf tmpfiles.d # /lib/rc/sh/tmpfiles.sh --create
/lib/rc/sh/tmpfiles.sh: 274: [: =: unexpected operator
/lib/rc/sh/tmpfiles.sh: 274: [: =: unexpected operator
--
Sergei
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-08-16 7:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-15 20:57 [gentoo-dev] [RFC] new tmpfilesd.eclass Sergei Trofimovich
2012-08-15 21:25 ` Michał Górny
2012-08-16 7:38 ` Sergei Trofimovich
2012-08-16 7:47 ` Michał Górny
2012-08-16 8:18 ` Sergei Trofimovich
2012-08-15 22:26 ` William Hubbs
2012-08-16 6:19 ` Robin H. Johnson
2012-08-16 7:13 ` Sergei Trofimovich [this message]
2012-08-16 18:47 ` Robin H. Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120816101343.4ef6e966@sf \
--to=slyfox@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
--cc=robbat2@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox