--- usr/share/google/regenerate-host-keys.orig	2014-12-24 22:40:30 UTC
+++ usr/share/google/regenerate-host-keys
@@ -29,7 +29,7 @@ sshd_cmd() {
   if [[ -x /etc/init.d/ssh || -f /etc/init/ssh.conf ]]; then
     service ssh ${cmd}
   fi
-  if [[ -x /etc/init.d/sshd || -f /etc/init/sshd.conf ]]; then
+  if [[ -x /etc/init.d/sshd || -f /etc/init/sshd.conf || -f /etc/rc.d/sshd ]]; then
     service sshd ${cmd}
   fi
 }
@@ -55,7 +55,7 @@ generate_key() {
 
 regenerate_host_keys() {
   log "Regenerating SSH Host Keys for: $new_ip_address (previously $old_ip_address)."
-  rm -f /etc/ssh/ssh_host_key /etc/ssh_host_key.pub # SSH1 RSA key.
+  rm -f /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.pub # SSH1 RSA key.
   for key_file in /etc/ssh/ssh_host_*_key; do
     # Parse out the type of key, matching the * in the for loop command above.
     key_type=$(basename "${key_file}" _key)
