diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-01 19:19:31 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-01 19:19:31 +0000 |
commit | d81a2a591052537d6161bf95671ac815cdf52a69 (patch) | |
tree | 9f87eb049e10a87b36ef8d126f042f330a0bd4cd /src | |
parent | bd4a765b540ebbbfd131b8fe8b40ed70b5f2a667 (diff) | |
download | bcfg2-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-x | src/sbin/bcfg2-server | 6 |
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', |