[opensuse-packaging] Directory creation for pid and log files
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? Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rschweikert@novell.com rschweikert@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
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
participants (2)
-
Andreas Jaeger
-
Robert Schweikert