Change the location of a log file

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

  1. Stop the site.
    • sudo /opt/collabnet/teamforge/bin/teamforge stop
    • /opt/collabnet/teamforge/bin/teamforge stop
  2. In the /opt/collabnet/teamforge/etc/site-options.conf file, set the value of the LOG_DIR token with the location where you want the log files to be written.
  3. Deploy services.
    • /opt/collabnet/teamforge/bin/teamforge provision
    Note:

    The "provision" command prompts for response before it bootstraps or migrates data during TeamForge installation and upgrade respectively. Enter "y" or "N" to proceed. For more information, see the TeamForge script.

    TeamForge 17.4 (and later) installer expects the system locale to be LANG=en_US.UTF-8. TeamForge "provision" command fails otherwise.

  4. Start the site.
    • /etc/init.d/httpd start
    • /etc/init.d/postgresql-9.6 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.