generate /etc/ssh/ssh_host_ecdsa_key
improve handling of pid file