X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=blobdiff_plain;f=source%2Fsteps%2FStartDebug.py;h=f913dc800eadd3bc6227c486ddf83bb0a6a71664;hp=598121f2fc4f8ab024bf5022fcd558de2d649acb;hb=f34ef1af6e4ba70e19c943ac3ef388675998b3f8;hpb=6ea670864d602b22ae6236eae1aeb249119002e4 diff --git a/source/steps/StartDebug.py b/source/steps/StartDebug.py index 598121f..f913dc8 100644 --- a/source/steps/StartDebug.py +++ b/source/steps/StartDebug.py @@ -120,7 +120,8 @@ def Run(vars, log, last_resort = True): # start sshd if not os.path.isfile(sshd_started_flag): log.write("Starting sshd\n") - utils.sysexec("service sshd start", log) + utils.sysexec("service sshd start || systemctl start sshd", + log, shell=True) # flag that ssh is running utils.sysexec("touch {}".format(sshd_started_flag), log) else: