restarting and reloading ssh doesn't work

Bug #1396900 reported by Lukav
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
initramfs-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have an install script that does various things including increasing ssh security by altering config files.
After altering it does reload or restart as appropriate.
I've noticed that in ubuntu 14.04 it stopped working.
The cause of the problem is the function in /etc/init.d/ssh
check_for_upstart() {
    if init_is_upstart; then
        exit $1
    fi
}

Before: start, reload and others it is called as:
check_for_upstart 1
Which basically means that if we have upstart installed and in use exit with an error.
This kills my script since it has set -e option in case anything goes wrong as in this case.

I'm not sure why this is written like this but if it really should exit with an error it should at least state what the error is.

P.S. I've found the same behaviour in

Lukav (lukav)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
sergiomb (sergio-sergiomb) wrote :

I have the same problem ubuntu 14.04 and exit 1 in check_for_upstart 1 , please
  what is the workaround ?

Thanks.

Revision history for this message
Lukav (lukav) wrote :

Unfortunately I have no recollection of solving the problem. And I've removed or upgraded all 14.04 instances

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.