Collapse daemon's main function
authorGuido Trotter <ultrotter@google.com>
Thu, 23 Jul 2009 15:46:37 +0000 (16:46 +0100)
committerGuido Trotter <ultrotter@google.com>
Sat, 25 Jul 2009 14:32:21 +0000 (16:32 +0200)
commit04ccf5e9f58a884eb2c949b2aabfcea33ad806a5
treea21edd4a9dd9c360ee34ef289b832b11cb37fd59
parent83052f9e24f51d0efc172c8fceea3e18fd0c1548
Collapse daemon's main function

With three ganeti daemons, and one or two more coming, the daemon's main
function started becoming too much cut&pasted code. Collapsing most of
it in a daemon.GenericMain function. Some more code could be collapsed
between the two http-based daemons, but since the new daemons won't be
http-based we won't do it right now.

As a bonus a functionality for overriding the network port on the
command line for all network based nodes is added.

Signed-off-by: Guido Trotter <ultrotter@google.com>
daemons/ganeti-masterd
daemons/ganeti-noded
daemons/ganeti-rapi
lib/constants.py
lib/daemon.py