summaryrefslogtreecommitdiffstats
path: root/minion
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2007-09-25 18:14:18 -0400
committerAdrian Likins <alikins@redhat.com>2007-09-25 18:14:18 -0400
commit14fd0d98b171169e58acf62c86ef1f3a5d5128ee (patch)
tree58e05c896d45db420ce4d8f46a62c6879e02663c /minion
parent6c38c3128afd8542d086ba998494e02872781b77 (diff)
downloadthird_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-xminion/server.py12
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)
# ======================================================================================