Subject: Re: default values for log and PID file path names?
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: tech-pkg
Date: 08/01/2006 23:19:08
On 8/1/06, Georg Schwarz <georg.schwarz@freenet.de> wrote:
>
> Am 01.08.2006 um 21:22 schrieb Roland Illig:
>
> >> --with-logfile=${VARBASE}/log/blabla.log --with-pidfile=$
> >> {VARBASE}/ run/blabla.pid
> >
> > grep(1) just told me that there is much prior art of that style. So
> > you should do it that way.
> >
>
> Can I assume that ${VARBASE}/log and ${VARBASE}/run will always exist?
> Does the options framework provide a means to specify alternative
> strings for that given package if desired?
If your package places any file outside PREFIX, it shall use OWN_DIRS
or MAKE_DIRS to register the directory in which it will be placed.
This way you ensure that the directory exists. You'll probably want
something like OWN_DIRS=${VARBASE}/run.
Cheers,
--
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/