Change the location of a log file

To change where log files are written to, edit the site-options.conf file and restart the runtime environment.

  1. Stop CollabNet TeamForge.
    Note: If your site is running on multiple machines, stop all the machines.
    • /etc/init.d/collabnet stop all
  2. Open the master site configuration file in a text editor. For example:
    • vi /opt/collabnet/teamforge-installer/5.4.0.0/conf/site-options.conf
  3. In the site-options.conf file, change the value of the LOG_DIR variable to reflect the location where you want the log files to be written.
  4. Rebuild the runtime environment.
    • ./install.sh -V -r -d <SITE_DIR>
  5. Start CollabNet TeamForge.
    • On Red Hat or CentOS:
      • /etc/init.d/httpd start (On CentOS, you may need to start Apache manually: /sbin/chkconfig --level 2345 httpd on)
      • /etc/init.d/postgresql start
      • /etc/init.d/collabnet start
    • On SuSE:
      • /etc/init.d/apache2 start
      • /etc/init.d/postgresql start
      • /etc/init.d/collabnet start
All future Apache logs, mail logs, database logs, java logs, and other logs will be written to the new location.