21363: Update name of SSH service main
authorBrett Smith <brett.smith@curii.com>
Fri, 7 Jun 2024 14:58:01 +0000 (10:58 -0400)
committerBrett Smith <brett.smith@curii.com>
Fri, 7 Jun 2024 14:58:01 +0000 (10:58 -0400)
The SSH server service has always been named ssh.service (at least since
Ubuntu 20.04). Some distros provide an sshd.service alias, but Ubuntu
24.04 does not, so don't use it.

Note this makes the command consistent with jenkins-image-common.sh.

Refs #21363.

Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

jenkins/packer-images/jenkins-image-common.sh

index 9f3c4616fd61029704c12d5c188e639325b3aed8..a08f0bdf81bc0bf51444cf46bda6aa26cf0b7688 100755 (executable)
@@ -56,4 +56,4 @@ sudo mv /tmp/node-ready.sh /usr/local/bin/
 # sshd so that the Jenkins agent can connect. This avoids the race where Jenkins
 # tries to start a job before the GCP outbound routing is working, and fails on
 # the first thing it needs internet for, the checkout from git.arvados.org
-sudo /bin/systemctl disable sshd
+sudo /bin/systemctl disable ssh