[prev in list] [next in list] [prev in thread] [next in thread]
List: opensuse-packaging
Subject: Re: [opensuse-packaging] Directory creation for pid and log files
From: Andreas Jaeger <aj () novell ! com>
Date: 2011-05-30 8:28:58
Message-ID: 201105301028.59043.aj () novell ! com
[Download RAW message or body]
On Monday, May 30, 2011 09:43:33 Andreas Jaeger wrote:
> On Friday, May 27, 2011 22:03:03 Robert Schweikert wrote:
> > Hi,
> >
> > Trying to get OpenNebula into a more usable state. The startup script of
> > the daemon puts pid files into /var/run/one/one.pid and log files into
> > /var/log/one/one.log. This is of course perfetly reasonable, with the
> > exception that the startup fails if /var/run/one and var/log/one do not
> > exists.
> >
> > Question now is should the startup script create the directories if they
> > do not exists or is this a job of the package in %post?
>
> Check /etc/tmpdirs.de - this is the proper way to create the directories,
Sorry, wrong place, use:
/etc/tmpfiles.d
> /var/run is on tmpfs, so you have to create them every boot,
> Adnreas
--
Andreas Jaeger, Program Manager openSUSE
aj@{novell.com,suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-packaging+help@opensuse.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic