Skip to content

Commit ff12bbc

Browse files
authored
Merge pull request #99 from rancher-sandbox/ifstarted
Don't reload sshd service if it hasn't started yet
2 parents fc71a49 + 6043d76 commit ff12bbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/10-alpine-prep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ usermod -p '*' "${LIMA_CIDATA_USER}"
2424

2525
# Alpine disables TCP forwarding, which is needed by the lima-guestagent
2626
sed -i 's/AllowTcpForwarding no/AllowTcpForwarding yes/g' /etc/ssh/sshd_config
27-
rc-service sshd reload
27+
rc-service --ifstarted sshd reload
2828

2929
# mount /sys/fs/cgroup
3030
rc-service cgroups start

0 commit comments

Comments
 (0)