Mailinglist Archive: opensuse-packaging (202 mails)

< Previous Next >
Re: [opensuse-packaging] Directory creation for pid and log files
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,

/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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References