Unverified Commit 47c03445 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

startup script: do not check for local daemon

In the case the host running the startup script is not one of the node
that will run adafs it does not make sense to check for the binary of
the daemon locally.
parent d3249536
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -47,9 +47,6 @@ def shutdown_system(daemon_path, nodelist, sigkill):
    # get absolute paths
    daemon_path = os.path.realpath(os.path.expanduser(daemon_path))
    pssh_nodelist = ''
    if not os.path.exists(daemon_path) or not os.path.isfile(daemon_path):
        print '[ERR] Daemon executable not found or not a file'
        exit(1)
    nodefile = False
    if os.path.exists(nodelist):
        nodefile = True
+0 −3
Original line number Diff line number Diff line
@@ -49,9 +49,6 @@ def init_system(daemon_path, rootdir, mountdir, nodelist, cleanroot, numactl):
    mountdir = os.path.realpath(os.path.expanduser(mountdir))
    rootdir = os.path.realpath(os.path.expanduser(rootdir))
    pssh_nodelist = ''
    if not os.path.exists(daemon_path) or not os.path.isfile(daemon_path):
        print '[ERR] Daemon executable not found or not a file'
        exit(1)
    nodefile = False
    if os.path.exists(nodelist):
        nodefile = True