On Debian/Ubuntu based systems, the service name is ssh.
@@ -98,7 +98,11 @@ restart_sshd() {
echo "Restarting sshd."
if which service >/dev/null 2>&1
then
+ if [ -e ${el_release_file} ]; then
service sshd restart
+ else
+ service ssh restart
+ fi
elif which invoke-rc.d >/dev/null 2>&1
then
invoke-rc.d sshd restart
