diff options
| author | Todd Willey <todd@rubidine.com> | 2010-07-14 19:57:41 -0400 |
|---|---|---|
| committer | Todd Willey <todd@rubidine.com> | 2010-07-14 19:57:41 -0400 |
| commit | 1b2eaa8fd1dd8a68de956a1a15c67499f96da88d (patch) | |
| tree | b03308dd66caf3ac6f8b5aab99f3420def79f069 /bin | |
| parent | ced951677c72307f173d37ef6d119d3202ace355 (diff) | |
unhardcode the binary name
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nova-compute | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/nova-compute b/bin/nova-compute index ed829ecc8..1b438f6a7 100755 --- a/bin/nova-compute +++ b/bin/nova-compute @@ -75,7 +75,8 @@ def main(): topic='%s.%s' % (FLAGS.compute_topic, FLAGS.node_name), proxy=n) - pulse = task.LoopingCall(n.report_state, FLAGS.node_name, 'nova-compute') + bin_name = os.path.basename(__file__) + pulse = task.LoopingCall(n.report_state, FLAGS.node_name, bin_name) pulse.start(interval=FLAGS.node_report_state_interval, now=False) injected = consumer_all.attach_to_twisted() @@ -83,7 +84,7 @@ def main(): # This is the parent service that twistd will be looking for when it # parses this file, return it so that we can get it into globals below - application = service.Application('nova-compute') + application = service.Application(bin_name) n.setServiceParent(application) return application |
