Comment 6 for bug 290874

Revision history for this message
H.-R. Oberhage (oberhage) wrote : Re: [Bug 290874] Re: /etc/init.d/opencryptoki stop does not stop pkcsslotd

Dear Chris Coulson,

On Nov 29, Chris Coulson wrote:
> I'm not sure which workaround you refer to, as you linked to this bug
> report. Can you describe the problem that you are still experiencing and
> describe the steps to recreate it (ie, does it happen during package
> install, or an upgrade? If it was an upgrade, was it just a normal
> update or were you upgrading from an earlier Ubuntu release?)

the notebook in question has been upgraded from 8.04 to 8.10, but at an
earlier stage, without a problem with respect to 'opencryptoki'.
This error occured from a '-proposed' upgrade with 8.10 (intrepid) itself.

I did find a solution for me, but it won't work for everyone, I assume,
as it required manual intervention.

The problem arose from the (old) init-script '/etc/init.d/opencryptoki'
giving a non-zero return value on 'stop' due to the fact that the 'start'
didn't successfully start the 'pkcsslotd'. Thus dpkg received an error
(from the 'stop') when trying to remove/upgrade the package, which went
up to the upgrade-manager.

My 'solution' was to put an 'exit 0' in the 'stop' branch before the
call to stop the daemon. This way the upgrade was done and I was only
asked if I wanted to actually replace /etc/init.d/opencryptoki (or
keep the old version), where I answered to install the new init-script
to. From then on, I had no problems any longer.

I think I do see the '--oknodo'-option in the 'stop'-case not present in
the older script. The problem is, that the old script won't be successfully
executed as long as it isn't swapped for the new one, thus aborting the
upgrade(s). When you've got more than one (error-)message for that problem
from me, it's from my trials do make the upgrade succeed; but it's actually
a 'one-time' event.

I'm fine the way it is, now. But I do think you might have to help other
people with the same problem.

Thanks for caring and for the fine software,
 Ruediger Oberhage
--
Dr. H.-R. Oberhage
Mail: Univ. Duisburg-Essen E-Mail: <email address hidden>
      Fachbereich Physik <email address hidden>
      Campus Duisburg, MG 464
      Lotharstrasse 1 Phone: {+49|0} 203 / 379-4736
      47057 Duisburg, Germany FAX: {+49|0} 203 / 379-4732