I'm trying to restart openssh-server in Ubuntu 10.10 by typing:
sudo /etc/init.d/ssh restart
and I'm getting this error:
sudo: unable to execute /etc/init.d/ssh: Text file busy
I'm trying to restart openssh-server in Ubuntu 10.10 by typing:
sudo /etc/init.d/ssh restart
and I'm getting this error:
sudo: unable to execute /etc/init.d/ssh: Text file busy
It sounds like you might have the file /etc/init.d/ssh open for writing somewhere, and therefore can't execute it. See this answer.
What does
get you?
You can do a
then restart it with
I don't know if it'll make any difference, but Ubuntu's had start and stop service control for a while. E.g:
I'm not sure it's also true on Ubuntu but on Debian, you can properly restart your openssh server without using init.d file with:
# start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile /var/run/sshd.pid --exec /usr/sbin/sshd