Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-16 Thread Robin H. Johnson
On Thu, Aug 16, 2012 at 10:13:43AM +0300, Sergei Trofimovich wrote: > 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/s

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-16 Thread Sergei Trofimovich
> > Oh, nice. What do you think of moving those helper implementations to > > tmpfiles-d.eclass and make > > > > systemd_dotmpfilesd() { dotmpfiles_d "$@"; } > > > > as William suggested? That way we would not impose blocker DEPENDs > > from systemd.eclass to users and might help adding {do,n

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-16 Thread Michał Górny
On Thu, 16 Aug 2012 10:38:06 +0300 Sergei Trofimovich wrote: > On Wed, 15 Aug 2012 23:25:16 +0200 > Michał Górny wrote: > > > On Wed, 15 Aug 2012 23:57:57 +0300 > > Sergei Trofimovich wrote: > > > > > But there is no simple way to install such helpers from ebuilds. > > > The tmpfiles.d is aim

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-16 Thread Sergei Trofimovich
On Wed, 15 Aug 2012 23:25:16 +0200 Michał Górny wrote: > On Wed, 15 Aug 2012 23:57:57 +0300 > Sergei Trofimovich wrote: > > > But there is no simple way to install such helpers from ebuilds. > > The tmpfiles.d is aimed to help in such situations. > > Yes, there is. > > $ grep dotmpfiles *.ecl

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-16 Thread Sergei Trofimovich
On Thu, 16 Aug 2012 06:19:55 + "Robin H. Johnson" 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/

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-15 Thread Robin H. Johnson
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 p

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-15 Thread William Hubbs
I have a couple of minor requests for readability. Can you call the eclass tmpfiles-d.eclass? Then, for the functions themselves, use names like, dotmpfiles_d newtmpfiles_d so they will be a bit more readable? Thanks, William pgpmBlPbfeN2v.pgp Description: PGP signature

Re: [gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-15 Thread Michał Górny
On Wed, 15 Aug 2012 23:57:57 +0300 Sergei Trofimovich wrote: > But there is no simple way to install such helpers from ebuilds. > The tmpfiles.d is aimed to help in such situations. Yes, there is. $ grep dotmpfiles *.eclass systemd.eclass:# @FUNCTION: systemd_dotmpfilesd systemd.eclass:systemd_

[gentoo-dev] [RFC] new tmpfilesd.eclass

2012-08-15 Thread Sergei Trofimovich
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. openrc-0.10 brought [2] basic support for systemd's tmpfiles'd: http://0pointer.de