Public bug reported:

Version 2.3.1+dfsg-3ubuntu4.

opencryptoki postinst does 
  invoke-rc.d opencryptoki start || exit $?

In turn, /etc/init.d/opencryptoki [start] does 
  start-stop-daemon --start --quiet --pidfile "/var/lib/opencryptoki/.slotid 
--exec /usr/sbin/pkcsslotd --

But if pkcsslotd is already running, this fails.

# /etc/init.d/opencryptoki stop
Stopping PKCS#11 slot daemon: pkcsslotd.
# echo $?
0
# /etc/init.d/opencryptoki start
Starting PKCS#11 slot daemon: # echo $?
1

Note as well that when it fails, it fails badly (no newline or error
message).

Here is the error from pkcsslotd:

# ps augxw | grep pkcsslotd
root      6351  0.0  0.0  20164   896 pts/0    S+   16:35   0:00 grep 
--color=auto pkcsslotd
# /usr/sbin/pkcsslotd
# echo $?
0
# /usr/sbin/pkcsslotd
  ERROR pkcsslotd[6395.755480320]: Shared memory creation failed (0x11)
  ERROR pkcsslotd[6395.755480320]: perform ipcrm -M 0x62000E67
# echo $?
1

** Affects: opencryptoki (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/963565

Title:
  opencryptoki postinst fails when pkcsslotd is already running

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/opencryptoki/+bug/963565/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to