diff options
author | Adrian Likins <alikins@redhat.com> | 2007-09-25 18:14:18 -0400 |
---|---|---|
committer | Adrian Likins <alikins@redhat.com> | 2007-09-25 18:14:18 -0400 |
commit | 14fd0d98b171169e58acf62c86ef1f3a5d5128ee (patch) | |
tree | 58e05c896d45db420ce4d8f46a62c6879e02663c /minion | |
parent | 6c38c3128afd8542d086ba998494e02872781b77 (diff) | |
download | third_party-func-14fd0d98b171169e58acf62c86ef1f3a5d5128ee.tar.gz third_party-func-14fd0d98b171169e58acf62c86ef1f3a5d5128ee.tar.xz third_party-func-14fd0d98b171169e58acf62c86ef1f3a5d5128ee.zip |
fix up the wrapper scripts so that --daemon works correctly, and so
the init scripts also work correctly
Diffstat (limited to 'minion')
-rwxr-xr-x | minion/server.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/minion/server.py b/minion/server.py index 823d072..3762095 100755 --- a/minion/server.py +++ b/minion/server.py @@ -193,17 +193,17 @@ def main(argv): print "" print "Seriously.\n\n" - try: - serve() - except codes.FuncException, e: - print >> sys.stderr, 'error: %s' % e - sys.exit(1) if "daemon" in sys.argv or "--daemon" in sys.argv: - utils.daemonize("/var/run/vf_server.pid") + utils.daemonize("/var/run/funcd.pid") else: print "serving...\n" + try: + serve() + except codes.FuncException, e: + print >> sys.stderr, 'error: %s' % e + sys.exit(1) # ====================================================================================== |