Make swift-init pay attention to $PATH

This commit is contained in:
Michael Barton 2010-07-15 14:44:45 +00:00
parent 6c6e335018
commit 8ef54b341d

View File

@ -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)