From ef6ff8d3ea779e82ef9f2b7b2eea0f2826f6ceaa Mon Sep 17 00:00:00 2001 From: Dong Liu Date: Thu, 7 Apr 2016 11:18:14 +0800 Subject: [PATCH] Fix coreos ssh restart issue. --- azurelinuxagent/distro/coreos/osutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/azurelinuxagent/distro/coreos/osutil.py b/azurelinuxagent/distro/coreos/osutil.py index c41f0dd..b174d04 100644 --- a/azurelinuxagent/distro/coreos/osutil.py +++ b/azurelinuxagent/distro/coreos/osutil.py @@ -67,7 +67,8 @@ class CoreOSUtil(DefaultOSUtil): shellutil.run("systemctl restart systemd-networkd") def restart_ssh_service(self): - return shellutil.run("systemctl restart sshd", chk_err=False) + # SSH is socket activated on CoreOS. No need to restart it. + pass def stop_dhcp_service(self): return shellutil.run("systemctl stop systemd-networkd", chk_err=False)