This patch takes a modified version of the Ubuntu 14.04 housekeeping service script and uses it in Docker to validate the current version. To disable the version validation, pass the --disable-version-check flag when running the container. Message-Id: <20180220161231.1630-1-amnon@scylladb.com>
22 lines
516 B
Python
Executable File
22 lines
516 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
import scyllasetup
|
|
import logging
|
|
import commandlineparser
|
|
|
|
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(message)s")
|
|
|
|
try:
|
|
arguments = commandlineparser.parse()
|
|
setup = scyllasetup.ScyllaSetup(arguments)
|
|
setup.developerMode()
|
|
setup.cpuSet()
|
|
setup.io()
|
|
setup.cqlshrc()
|
|
setup.arguments()
|
|
setup.set_housekeeping()
|
|
os.system("/usr/bin/supervisord -c /etc/supervisord.conf")
|
|
except:
|
|
logging.exception('failed!')
|