Try

echo export GEOSERVER_DATA_DIR=/usr/local/jboss/geoserver_data_dir/   
 >>   /etc/bash.bashrc
echo export GEOSERVER_LOG_LOCATION=/var/log/jboss/geoserver.log >>  
/etc/bash.bashrc
source /etc/bash.bashrc

Look here for an explanation of "export"
http://stackoverflow.com/questions/1158091/bash-defining-a-variable-with-or-without-export

If this helps, we should add this information to
http://docs.geoserver.org/latest/en/user/advanced/logging.html

Cheers
Christian



Quoting Marcos Nino-Ruiz <[email protected]>:

> Hi All,
> following instructions of
> http://docs.geoserver.org/latest/en/user/advanced/logging.html
> In geoserver version RC 2.0.3, version web archive deployed on jboss
> (.war) I'm  trying to separate the location of the logs from the data
> directory (good server practice), but the geoserver refuses to use
> other than GEOSERVER_DATA_DIR/data/logs/geoserver.log
>
> I've tried setting in the web.xml:
>      <context-param>
>        <param-name>GEOSERVER_LOG_LOCATION</param-name>
>         <param-value>/var/log/jboss/geoserver.log</param-value>
>     </context-param>
>
> And also as global variable. The strange thing is that setting an
> external GEOSERVER_DATA_DIR works perfectly, as also works in my
> windows desktop configuration.
>
>> echo GEOSERVER_DATA_DIR=/usr/local/jboss/geoserver_data_dir/ >>   
>> /etc/bash.bashrc
>> echo GEOSERVER_LOG_LOCATION=/var/log/jboss/geoserver.log >> /etc/bash.bashrc
>> source /etc/bash.bashrc
> when I do:
>> echo $GEOSERVER_LOG_LOCATION
>
> it prints the right one:
> /var/log/jboss/geoserver.log
>
> And if I modify the run.sh that starts jboss, this echo also shows the
> correct variable....
> any ideas why it is not working?
> Thanks in advance!
>
> Marcos Nino-Ruiz
> Computer and Systems engineer
> CRC for Spatial Information
> The University of Melbourne
> Victoria 3010
> Australia
>
> ------------------------------------------------------------------------------
> Benefiting from Server Virtualization: Beyond Initial Workload
> Consolidation -- Increasing the use of server virtualization is a top
> priority.Virtualization can reduce costs, simplify management, and improve
> application availability and disaster protection. Learn more about boosting
> the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to