From Dan Kenigsberg <[email protected]>: Dan Kenigsberg has uploaded a new change for review.
Change subject: pytlint: drop ivdsm ...................................................................... pytlint: drop ivdsm Not used for years, completely replaceable by "manhole". Change-Id: I0478614a8ddc1a664fbafb59545b3078178ad92a Signed-off-by: Dan Kenigsberg <[email protected]> --- D contrib/ivdsm.py 1 file changed, 0 insertions(+), 56 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/38/69338/1 diff --git a/contrib/ivdsm.py b/contrib/ivdsm.py deleted file mode 100644 index a6dcd91..0000000 --- a/contrib/ivdsm.py +++ /dev/null @@ -1,56 +0,0 @@ -# -# Copyright 2011 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# - -import os -import pwd -import logging -import threading -import sys - - -def runVdsm(baseDir="/usr/share/vdsm/", configFilePath="/etc/vdsm/vdsm.conf", - loggerConfigurationPath='/etc/vdsm/logger.conf'): - """ - Start a VDSM instance in a new thread. - - Return a tuple ``(ClientIF, Thread Running VDSM)`` - """ - if pwd.getpwuid(os.geteuid())[0] != "vdsm": - raise Exception("You can't run vdsm with any user other then 'vdsm'.") - - sys.path.append(baseDir) - - from vdsm.config import config - from logging import config as lconfig - import clientIF - - loggerConfFile = loggerConfigurationPath - lconfig.fileConfig(loggerConfFile, disable_existing_loggers=False) - log = logging.getLogger('vds') - - config.read(configFilePath) - - cif = clientIF.clientIF(log) - - t = threading.Thread(target=cif.serve) - t.setDaemon(True) - t.start() - - return (cif, t) -- To view, visit https://gerrit.ovirt.org/69338 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0478614a8ddc1a664fbafb59545b3078178ad92a Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ vdsm-patches mailing list -- [email protected] To unsubscribe send an email to [email protected]
