Skip to content
Snippets Groups Projects
Commit 5d283abb authored by root's avatar root Committed by Marcelo Vilaça Pinheiro Soares
Browse files

Startup

parents 3b778369 9daa5bc2
No related branches found
No related tags found
No related merge requests found
Showing
with 117 additions and 0 deletions
[DEFAULT]
debug = false
# Uncomment and replace with the address which should receive any error reports
#email_to = you@yourdomain.com
#smtp_server = localhost
#error_email_from = paste@localhost
[server:main]
use = egg:Paste#http
host = 127.0.0.1
port = 5000
[app:main]
use = egg:fts3rest
full_stack = true
static_files = true
cache_dir = /var/cache/fts3rest/data
beaker.session.key = fts3rest
beaker.session.secret = somesecret
# If you'd like to fine-tune the individual locations of the cache data dirs
# for the Cache data, or the Session saves, un-comment the desired settings
# here:
#beaker.cache.data_dir = /var/cache/fts3rest/data/cache
#beaker.session.data_dir = /var/cache/fts3rest/data/sessions
# FTS3 configuration file
fts3.config = /etc/fts3/fts3config
# SQLAlchemy database URL
# If fts3.config is specified, the database connection string will be picked
# up from there
sqlalchemy.url = mysql://fts:fts@ftsdb/fts
# SQLAlchemy pool size.
# sqlalchemy.pool_size=32
# SQLAlchemy pool timeout. It is recommended to leave some not very high value
sqlalchemy.pool_timeout=10
# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
# Debug mode will enable the interactive debugging tool, allowing ANYONE to
# execute malicious code after an exception is raised.
#set debug = false
# Logging configuration
[loggers]
keys = root, routes, fts3rest, sqlalchemy
[handlers]
keys = console, log_file
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = log_file
[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
# "level = DEBUG" logs the route matched and routing variables.
[logger_fts3rest]
level = INFO
handlers =
qualname = fts3rest
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
# "level = INFO" logs SQL queries.
# "level = DEBUG" logs SQL queries and results.
# "level = WARN" logs neither. (Recommended for production systems.)
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[handler_log_file]
# See
# http://docs.python.org/2/library/logging.handlers.html
class = logging.FileHandler
args = ('/var/log/fts3rest/fts3rest.log', 'a')
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(module)s] %(message)s
datefmt = %H:%M:%S
#!/bin/bash
set -ex
# wait for MySQL readiness
/scripts/wait-for-it.sh -h ftsdb -p 3306 -t 3600
# initialise / upgrade the database
#/scripts/initialize-mysql.sh
#mysql -u root -pfts -h ftsdb -Bse "GRANT ALL ON fts.* TO 'fts'@'%' IDENTIFIED BY 'fts';\
# FLUSH PRIVILEGES;\
# GRANT SUPER ON *.* to 'fts'@'%' IDENTIFIED BY 'fts';\
# FLUSH PRIVILEGES;"
#mysql -u root -pfts -h ftsdb fts < /usr/share/fts-mysql/fts-schema-6.0.0.sql
# startup the FTS services
#/usr/sbin/fts_server # main FTS server daemonizes
#/usr/sbin/httpd -DFOREGROUND # FTS REST frontend & FTSMON
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment