On Mon, Oct 19, 2009 at 3:29 PM, Martin Pepin <[email protected]> wrote:
>
> Hi,
>
> To solve XX-6782 I need to dynamically modify file "openfile.xml" when the
> "Instant Messaging" debug level is turned on. I have noticed that there are
> 2 copies of the same file:
>
> 1) /opt/openfire/conf/openfire.xml
> 2) ${sipxecs_install}/share/java/sipXecs/sipXopenfire/conf/openfire.xml
>
> The reason why there are 2 copies is that when "sipxopenfire-setup.sh" runs
> at sipXecs startup, it creates a softlink from
> ${sipxecs_install}/share/java/sipXecs/sipXopenfire/conf/openfire.xml to
> /opt/openfire/conf/openfire.xml. However, around 10 seconds after
> "SipXopenfire" starts, the openfire.xml file gets overwritten and the
> softlink is removed. This seems to be overwritten by the "SipXopenfire"
> process itself. This is also happening when I manually set the openfire
> debug level in the openfire web admin server->logs->debug tab and click save
> changes.
>
> I would like to propose that the softlink creation in
> "sipxopenfire-setup.sh" links to the "conf" directory where openfire.xml is
> located instead of linking to the actual file. Any comments?
>
Hard to remember the details but if it works, then lets do it.
Ranga
> Best regards,
> Martin
>
> bash-3.2$ grep openfire.xml main/sipXopenfire/sipxopenfire-setup.sh.in
> rm -f @OPENFIRE_HOME@/conf/openfire.xml 2> /dev/null
> ln -s ${SIPX_OPENFIRE_DIR}/conf/openfire.xml @OPENFIRE_HOME@/conf 2>
> /dev/null
>
>
>
> bash-3.2$ sstop
> Stopping sipXpbx:
> Stopping apache:
> Stopping: sipxsupervisor
> Confirm Stop: sipxsupervisor .......... [ OK ]
> bash-3.2$ sstart
> Checking bootstrap setup: [ OK ]
> Checking TLS/SSL configuration: [ OK ]
> Checking Per-process file descriptor limits: [ OK ]
> Checking rpm configuration file updates: [ OK ]
> Checking SELinux is not enforcing: [ OK ]
> Checking Apache configuration: [ OK ]
> Checking hostname is fully qualified: [ OK ]
> Checking localhost address configured: [ OK ]
> Checking localhost name is not shared: [ OK ]
> Checking /tmp directory has correct permissions: [ OK ]
>
> Starting sipXpbx:
> Starting sipxsupervisor: [ OK ]
> Starting httpd: [ OK ]
>
> bash-3.2$ date; ls -1og /opt/openfire/conf
> Mon Oct 19 13:46:15 EDT 2009
> total 20
> -rw-r--r-- 1 9452 2009-10-18 22:19 available-plugins.xml
> lrwxrwxrwx 1 83 2009-10-19 13:46 openfire.xml ->
> /home/sipxchange/WORKING2/INSTALL/share/java/sipXecs/sipXopenfire/conf/openfire.xml
>
> -rw-r--r-- 1 11 2009-10-18 22:19 server-update.xml
>
> bash-3.2$ date; ls -1og /opt/openfire/conf
> Mon Oct 19 13:46:22 EDT 2009
> total 20
> -rw-r--r-- 1 9452 2009-10-18 22:19 available-plugins.xml
> -rw-r--r-- 1 1149 2009-10-19 13:46 openfire.xml
> -rw-r--r-- 1 11 2009-10-18 22:19 server-update.xml
>
>
> _______________________________________________
> 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/
>
--
M. Ranganathan
_______________________________________________
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/