Skip to content

Commit ef35c06

Browse files
authored
Merge pull request #3824 from afbjorklund/openrc-reload
Look for both ssh service names also for openrc
2 parents 0d710b1 + 141adf5 commit ef35c06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/cidata/cidata.TEMPLATE.d/boot/11-colorterm-environment.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ else
2424
fi
2525

2626
if [ -f /sbin/openrc-run ]; then
27-
rc-service --ifstarted sshd reload
27+
if [ -f etc/init.d/ssh ]; then
28+
rc-service --ifstarted ssh reload
29+
elif [ -f etc/init.d/sshd ]; then
30+
rc-service --ifstarted sshd reload
31+
fi
2832
elif command -v systemctl >/dev/null 2>&1; then
2933
if systemctl -q is-active ssh; then
3034
systemctl reload ssh

0 commit comments

Comments
 (0)