From 8ef54b341dedc76db5156b3cada22e0990983bdf Mon Sep 17 00:00:00 2001 From: Michael Barton Date: Thu, 15 Jul 2010 14:44:45 +0000 Subject: [PATCH] Make swift-init pay attention to $PATH --- bin/swift-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/swift-init b/bin/swift-init index e403764b4f..be8a337c36 100755 --- a/bin/swift-init +++ b/bin/swift-init @@ -82,10 +82,10 @@ def do_start(server, once=False): pass try: if once: - os.execl('/usr/bin/swift-%s' % server, server, + os.execlp('swift-%s' % server, server, ini_file, 'once') else: - os.execl('/usr/bin/swift-%s' % server, server, ini_file) + os.execlp('swift-%s' % server, server, ini_file) except OSError: print 'unable to launch %s' % server sys.exit(0)