Comment 2 for bug 1311810

Revision history for this message
Joshua Timberman (jtimberman) wrote :

I've added a "affects openssh-server" because I'm seeing that /etc/init.d/ssh is an init script as well, instead of a link to /lib/init/upstart-job.

# file /etc/init.d/ssh
/etc/init.d/ssh: POSIX shell script, ASCII text executable

Contains:

check_for_upstart() {
    if init_is_upstart; then
        exit $1
    fi
}

ubuntu@ssh:~$ sudo /etc/init.d/ssh restart
[sudo] password for ubuntu:
ubuntu@ssh:~$ echo $?
1
ubuntu@ssh:~$ sudo restart ssh
ssh start/running, process 460
ubuntu@ssh:~$ echo $?
0