summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-03-01 19:19:31 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-03-01 19:19:31 +0000
commitd81a2a591052537d6161bf95671ac815cdf52a69 (patch)
tree9f87eb049e10a87b36ef8d126f042f330a0bd4cd /src
parentbd4a765b540ebbbfd131b8fe8b40ed70b5f2a667 (diff)
downloadbcfg2-d81a2a591052537d6161bf95671ac815cdf52a69.tar.gz
bcfg2-d81a2a591052537d6161bf95671ac815cdf52a69.tar.bz2
bcfg2-d81a2a591052537d6161bf95671ac815cdf52a69.zip
Resolve daemon issues (resolves ticket #30)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1784 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-server6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-server b/src/sbin/bcfg2-server
index 7d2b55f91..4fc517e76 100755
--- a/src/sbin/bcfg2-server
+++ b/src/sbin/bcfg2-server
@@ -197,7 +197,11 @@ class Bcfg2Serv(Bcfg2.Server.Component.Component):
return "<ok/>"
if __name__ == '__main__':
- Bcfg2.Logging.setup_logging('bcfg2-server')
+ if '-D' in sys.argv:
+ Bcfg2.Logging.setup_logging('bcfg2-server', to_console=False)
+ else:
+ Bcfg2.Logging.setup_logging('bcfg2-server')
+
options = {
'v':'verbose',
'd':'debug',