git://git.onelab.eu
/
bootmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service and ifconfig have gone
[bootmanager.git]
/
source
/
steps
/
StartDebug.py
diff --git
a/source/steps/StartDebug.py
b/source/steps/StartDebug.py
index
598121f
..
f913dc8
100644
(file)
--- 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")
# 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:
# flag that ssh is running
utils.sysexec("touch {}".format(sshd_started_flag), log)
else: