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
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user