From 5119f2ec8a528faa0f1f8e9a02dc12b028dd6dda Mon Sep 17 00:00:00 2001 From: Michael Hanselmann Date: Fri, 29 Oct 2010 16:08:48 +0200 Subject: [PATCH] Move ganeti-noded to ganeti.server.noded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michael Hanselmann Reviewed-by: René Nussbaumer --- .gitignore | 1 + Makefile.am | 5 +++-- daemons/ganeti-noded => lib/server/noded.py | 7 ++----- 3 files changed, 6 insertions(+), 7 deletions(-) rename daemons/ganeti-noded => lib/server/noded.py (99%) mode change 100755 => 100644 diff --git a/.gitignore b/.gitignore index af2930e0f..3c210fa7e 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,7 @@ /daemons/ganeti-cleaner /daemons/ganeti-confd /daemons/ganeti-masterd +/daemons/ganeti-noded /daemons/ganeti-watcher # devel diff --git a/Makefile.am b/Makefile.am index 24b8b3f3f..3e87c3be1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -198,7 +198,8 @@ watcher_PYTHON = \ server_PYTHON = \ lib/server/__init__.py \ lib/server/confd.py \ - lib/server/masterd.py + lib/server/masterd.py \ + lib/server/noded.py docrst = \ doc/admin.rst \ @@ -284,6 +285,7 @@ gnt_scripts = \ PYTHON_BOOTSTRAP = \ daemons/ganeti-confd \ daemons/ganeti-masterd \ + daemons/ganeti-noded \ daemons/ganeti-watcher \ scripts/gnt-backup \ scripts/gnt-cluster \ @@ -294,7 +296,6 @@ PYTHON_BOOTSTRAP = \ scripts/gnt-os dist_sbin_SCRIPTS = \ - daemons/ganeti-noded \ daemons/ganeti-rapi nodist_sbin_SCRIPTS = \ diff --git a/daemons/ganeti-noded b/lib/server/noded.py old mode 100755 new mode 100644 similarity index 99% rename from daemons/ganeti-noded rename to lib/server/noded.py index 4325c7b8d..b3064527e --- a/daemons/ganeti-noded +++ b/lib/server/noded.py @@ -973,6 +973,7 @@ def PrepNoded(options, _): server.Start() return (mainloop, server) + def ExecNoded(options, args, prep_data): # pylint: disable-msg=W0613 """Main node daemon function, executed with the PID file held. @@ -984,7 +985,7 @@ def ExecNoded(options, args, prep_data): # pylint: disable-msg=W0613 server.Stop() -def main(): +def Main(): """Main function for the node daemon. """ @@ -1000,7 +1001,3 @@ def main(): default_ssl_cert=constants.NODED_CERT_FILE, default_ssl_key=constants.NODED_CERT_FILE, console_logging=True) - - -if __name__ == '__main__': - main() -- GitLab