Skip to content
Snippets Groups Projects
Commit 596fd9d0 authored by lantz's avatar lantz
Browse files

Merge pull request #449 from cdburkard/devel/cluster_controlPaths

use ControlPersist ssh option to fix ControlPath shutdown
parents 474f6860 34933ef7
No related branches found
No related tags found
No related merge requests found
...@@ -135,7 +135,8 @@ def __init__( self, name, server='localhost', user=None, serverIP=None, ...@@ -135,7 +135,8 @@ def __init__( self, name, server='localhost', user=None, serverIP=None,
self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase
if self.controlPath: if self.controlPath:
self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath, self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath,
'-o', 'ControlMaster=auto' ] '-o', 'ControlMaster=auto',
'-o', 'ControlPersist=' + '1' ]
self.sshcmd = self.sshcmd + [ self.dest ] self.sshcmd = self.sshcmd + [ self.dest ]
self.isRemote = True self.isRemote = True
else: else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment