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 pass
try: try:
if once: if once:
os.execl('/usr/bin/swift-%s' % server, server, os.execlp('swift-%s' % server, server,
ini_file, 'once') ini_file, 'once')
else: else:
os.execl('/usr/bin/swift-%s' % server, server, ini_file) os.execlp('swift-%s' % server, server, ini_file)
except OSError: except OSError:
print 'unable to launch %s' % server print 'unable to launch %s' % server
sys.exit(0) sys.exit(0)