On Tue, 2009-10-27 at 11:15 -0400, Robert Joly wrote:
> > Looking in sipXopenfire/sipxopenfire.sh.in, there is this
> > assignment for use as a temporary directory:
> >
> > TMP_DIR="/tmp"
> >
> > I think it would be preferable to use SIP_TMPDIR as the
> > temporary directory via:
> >
> > TMP_DIR="@SIPX_TMPDIR@"
> >
> >
> > Also, looking at where this variable is used:
> >
> > echo "conf.d...@sipx_confdir@" > ${TMP_DIR}/sipx.properties
> > echo "openfire.home=${OPENFIRE_HOME}" >>
> > ${TMP_DIR}/sipx.properties
> > exec ${OPENFIRE_HOME}/${OPENFIRE} start
> >
> > I see that the code writes configuration information into
> > ${TMP_DIR}/sipx.properties, but I don't see what directs
> > Openfire to read that particular file -- is it hard-coded in
> > the Openfire executable?
>
> Yes it is. sipXopenfire goes to look in /tmp for its properties file.
This doesn't sound correct - the whole point of temp directories is that
you can delete what's in them. Why is configuration data in a tmp
directory? It should be in $SIPX_CONFDIR
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/