Would it be possible to update the maintainDB.sh so that is uses the same or similar properties as the teamcity-server.sh. Especially the log location setting, -Dteamcity_logs.
It would be helpful if this would use $TEAMCITY_LOG_PATH, as in the teamcity-server.sh.
Presently the setting is -Dteamcity_logs=`dirname ../../logs, which causes problems if the logs have been moved in the teamcity-server.sh by using the TEAMCITY_LOG_PATH.
The reason is to avoid having to edit the file after each new release.