Update _find_default_daemon_binary() because the binary is always named edenfs.

Reviewed By: simpkins

Differential Revision: D3492527

fbshipit-source-id: b74859ebd2cfac55568bdb170a863d78607ad108
This commit is contained in:
Michael Bolin 2016-06-28 11:01:31 -07:00 committed by Facebook Github Bot 7
parent 35add0f007
commit 911b0bde9b

View File

@ -249,7 +249,7 @@ def do_daemon(args):
def _find_default_daemon_binary():
# By default, we look for the daemon executable alongside this file.
script_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
candidate = os.path.join(script_dir, 'daemon')
candidate = os.path.join(script_dir, 'edenfs')
permissions = os.R_OK | os.X_OK
if os.access(candidate, permissions):
return candidate