Make swift-init pay attention to $PATH
This commit is contained in:
parent
6c6e335018
commit
8ef54b341d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user