Try systemctl instead

This commit is contained in:
teor 2022-10-10 14:15:05 +10:00 committed by GitHub
parent 975d9045fd
commit 84a83ee9cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ jobs:
echo 'Modified config:'
sudo cat /etc/ssh/sshd_config
echo
sudo sh /etc/init.d/ssh reload
sudo systemctl reload sshd.service
echo
ps auxwww | grep sshd
@ -456,7 +456,7 @@ jobs:
echo 'Modified config:'
sudo cat /etc/ssh/sshd_config
echo
sudo sh /etc/init.d/ssh reload
sudo systemctl reload sshd.service
echo
ps auxwww | grep sshd